You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Dora Su 8033863a33 Use the new CSC logo 1 year ago
..
templates Final changes required for deployment 1 year ago
.keep Create an empty backend directory 1 year ago
README.md newline 1 year ago
main.py Final changes required for deployment 1 year ago
requirements.txt Use the new CSC logo 1 year ago
setup_db.py Final changes required for deployment 1 year ago

README.md

Links Backend

Setup

  1. Install Python 3.

  2. Run the following commands inside the backend folder:

python3 -m venv venv
venv/Scripts/activate
pip install -r requirements.txt
python main.py

If you are on Windows, run venv\Scripts\activate instead, for the second command.

  1. Go to localhost:5000 in your web browser and you should see "Hello, World!".

(Optional) Exercises

  • Install Postman (https://www.postman.com/downloads/) and use it make a request to this web server.
  • Add a new GET route at /test that shows "A new route".
  • Add a new POST route at /post that accepts a JSON body, and shows the foo key of the JSON.