git clone git@github.com:jamesesguerra/frontdeskapp.git
Change directory into project folder
cd frontdeskapp/
NOTE: The app runs on React and Flask, so Node/npm and Python need to be installed first.
Install dependencies
cd client && npm i
Change directory into server folder
cd ../server
Make a virtual environment
python -m venv venv
Activate the virtual environment
# windows
\venv\Scripts\activate
# unix
source venv/bin/activate
Install dependencies
pip install -r requirements.txt
- Start the server
# still in /server folder
python app.py
-
Open a second terminal and change directory into the
frontdeskapp/client
folder. -
Start the client server
npm start
- View the project at http://localhost:3000/
- customers
- GET
/customers
- returns all the customers - POST
/customers
- creates a new customer; accepts JSON in request body
- boxes
- GET
/boxes
- returns boxes of small, medium, and large sizes, including retrieved boxes - POST
/boxes
- registers a new box if there is available space; accepts JSON in request body - PUT
/boxes
- retrieves a box, removing it from stored boxes and adding it to the list of retrieved boxes; accepts JSON in request body
server/customers.json
- file which the server writes to and reads from to store and retrieve information about the customersserver/boxes.json
- file which the server writes to and reads from to store and retrieve information about boxes