Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 868 Bytes

README.md

File metadata and controls

16 lines (15 loc) · 868 Bytes

FastAPI & MongoDB Template with React

Use this to quickly start a single-page app with FastAPI and MongoDB through Docker.

Instructions

  1. Clone the repo, then add a .env file to the top-level directory.
  2. In the .env file, add the two following lines, replacing "your_stuff_here" with your values:
  3. db_username=your_stuff_here
  4. db_password=your_stuff_here
  5. When you build the docker image file, it will pull in your authentication values and bake them in the image while keeping them out of your repo.
  6. Make sure you have Docker Desktop installed, then open a terminal and navigate to the repo folder.
  7. Build the image/run the containers with "docker-compose up --build".
  8. Open your browser and navigate to 127.0.0.1:8000, and you should see {"msg":"Hello World!"}

You can build out the application from there.