Team 39 Phase 4 final project of CS 4400: Intro to Databases, Spring 2020, with Dr. Mark Moss.
Using Flask, Svelte, and MySQL for a food truck management website.
Contributors (and their primary Georgia Tech username):
Make sure you have Python ≥3.7 installed.
These steps should be in a terminal in the /server folder (cd server
).
You can skip the "Set up virtual environment" and "Activate virtual environment" steps if you're okay with installing the pip packages globally on your computer. With bigger projects it would be a good idea to use a virtual environment, however.
This should be a one-time task.
pip install virtualenv
virtualenv venv
This should be done every time you open a new terminal
source venv/bin/activate
source venv/Scripts/activate
.\venv\Scripts\activate
Next, we need to install the project dependencies, which are listed in requirements.txt
.
pip install -r requirements.txt
Change .env
to your match your database address, password, etc.
Start the server on port 4000:
flask run -p 4000
It may be helpful to first enable debug mode beforehand:
export FLASK_ENV=development
set FLASK_ENV="development"
$env:FLASK_ENV="development"
To test the backend, you can use the application Postman.
Now, in a separate terminal in the /client folder (cd client
), run:
npm install
npm run dev
The website will be available at http://localhost:5000.
If that doesn't work, try:
npm run build
npm run serve