A: Docker container(spools up frontend, backend and nginx using docker:) - Most efficient and Full-Featured:
OR
B: Without docker(Spool up just the backend) - Python FastAPI
A: Docker container(spools up frontend, backend and nginx using docker:) - Most efficient and Full-Featured:
-
Clone the base repo:f https://github.com/Cirrostrats/base
-
Follow instructions in
base/README.md
-
Clone this cirrostrats-backend repo
-
Running the Backend:
.env
contents: Create an.env
file inside of thecirrostrats-backend
folder : paste the following into this.env
file, replacing theconnection_string
with your MongoDB connection string.# .env (for local environment) connection_string='***' env='development' # Use this locally. For production change it to 'production'
a. Ensure Python Installation: Make sure Python is installed on your machine.
b. Initialize Virtual Environment (venv): Ensure you are working in
cirrostrats-backend
directorypython -m venv venv
c. Activate the Virtual Environment:
source venv/bin/activate
d. Install Required Packages:
pip install -r requirements.txt
e. Run the FastAPI Server:
uvicorn main:app --reload
f. Access the Backend Locally: The project will be locally running at http://127.0.0.1:8000.