Scratchpad
This scratchpad exists as evidence for purposes of documenting the steps and processes of this work. Alot of ideas and information exists here.I choose to add it here for purposes of deisgn, ideation and build of this project. It is possible parts of it to be missing, removed or changed from time to time for personal reasons by the AUTHORS.
This project was build using the self contained waterfall structure. We reference is at the Project BuildStructure.md
####Flow of Execution
This project was build using the self contained waterfall structure. We reference is at the Project BuildStructure.md
The fundamental way the frontend frameworks interact with the backend is by making HTTP calls via AJAX. The typical interface to the backend is a REST API
PostgreSQL and SQLite are two relation databases, SQLAlchemy is an ORM which gives you a set of tools for accessing the data in the database.
While SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives us the full power and flexibility of SQL, we will use Beanie as it works with MONGODB,as it is the database we will use and is an Object Document Mapper that gives application developers the full power and flexibility of a NoSQL Database.
FastAPI is an API;that we use or create a tool that would simplify the API testing process. We will utilise Postman for testing the app, and all its functionality because Postman is an API platform for building and using APIs that simplifies each step of the API lifecycle.
all the run tests uploaded to the testing directory.
[/coverage]
[/build]
To deploy an application means to perform the necessary steps to make it available to the users. For a web API, it normally involves putting it in a remote machine, with a server program that provides good performance, stability, etc, so that your users can access the application efficiently and without interruptions or problems. This is in contrast to the development stages, where we are constantly changing the code, breaking it and fixing it, stopping and restarting the development server, etc.
Deploying a FastAPI application is relatively easy.
Depending on our specific use case and the tools that we use.when deploying a FastAPI application (although most of it applies to any other type of web application).
- We could deploy a server ourselves(Local Deployment) using a combination of tools, or
- We could use a cloud service and make a cloud deployment that does part of the work for us, or other possible options.
Cloud Deployment with linode-deploy-gunicorn-uvicorn-nginx
-- Requirements for Local Deployment
- nginx-unit : Nginx-unit is a Fast API
- VirtualBox : Virtual Box is a tool that is used to setup a virtual workspace using images
- Vagrant Vagrant is a tool for building and distributing development environments-
- Swagger UI is a collection of HTML, JavaScript, and CSS assets;
- That dynamically generate beautiful documentation from a Swagger-compliant API.
Auth Login Page Micro Frontends
Deploying our FastAPI application is relatively easy.
Cloud Deploy - Here we use a cloud service that does part of the deployment for us, or other possible options.
We deploy a server ourselves using a combination of tools)
Requirements