Skip to content
Snippets Groups Projects
Select Git revision
  • 1d0e3c2a4b3da2820134324058169f1593a849b2
  • main default
2 results

eatfast-website

user avatar
Antoine Gaudron-desjardins authored
1d0e3c2a
History
Name Last commit Last update
backend
frontend
.gitignore
.gitlab-ci.yml
README.md

README

Run the server-side FastAPI app

In development mode

You can start a virtual environment with the following instructions.

$ cd backend
$ python3.9 -m venv env
$ source env/bin/activate

Then you need to install the dependencies by executing pip install -r requirements.txt
Comment the app service in the docker-compose.yml then build and run the file.
Start the development server running python -m uvicorn main:app --reload --port=3001 --host 0.0.0.0

Navigate to http://localhost:3001


In production mode

Build the docker image : docker-compose build
Run the server, docker-compose up -d


Run the client-side React app in a different terminal window:

$ cd frontend
$ npm install
$ npm run start

Navigate to http://localhost:3000