Coo - F.A.R.M stack BoilerPlate
F.A.R.M - FastAPI, React, MongoDB
This boilerplate utilizes FastAPI to build a REST API, MongoDB for data storage, and React to build the front end
Technologies
Backend
Frontend
Installation
Backend
CD into the backend directory
Create a virtual environment
Install the required packages using pip install -r requirements.txt
Create a .env file in the backend directory and add the following variables:
PORT
- The port to run the server onHOST
- The host IP to run the server onDEBUG_MODE
- Whether or not to run the server in debug modeMONGO_URI
- The URI to connect to MongoDBMONGO_DB_NAME
- The name of the database to connect to
Run the server using python main.py
Frontend
CD into the frontend directory
run npm install
Run the server using npm run start