REST API using Flask, performs basic CRUD operations on two data tables in a PostreSQL db. It's paired with a React front end. Made as part of a team challenge to spin up a web server in an unfamiliar language.
- Python3
- Flask
- Psycopg3
- PostgreSQL on Postico
- Python3
- Pip3
- PostgreSQL client like Postico
- Node.js (to get front-end packages)
Should come with repo, if not install with pip3:
Steps to get the development environment running.
- Download this project.
- Run queries in
python_hotel.sql
- Configure database stored in
mainConnection
export FLASK_APP=server/server.py
flask run
To start front-end
- Download React UI
npm install
npm start
- Navigate to http://localhost:3000/
- CRUD for two tables
- Database information displayed on DOM
- Break up routes with a router
- More readable file structure