This project is written using the Google App Engine IaaS (Infrastructure as a Service) framework.
The frontend is developed using the React web framework.
- Install requirements into the
lib
folderpip install -t lib -r requirements.txt
Note: Project settings are already configured in app.yaml
, and the environment is setup to serve the build files generated from React.
- To start the server, simply run the docker-compose command below:
docker-compose up
- The command will start and instance of the python server accessible at:
- The command will also start an instance of the google cloud datastore emulator at:
- To create an offer:
POST http://localhost:8080/offers
- To fetch all existing offers:
GET http://localhost:8080/offers
- Include all the files created by running
npm build
oryarn build
into thetemplates
folder. - Deploy the project in one of the following ways:
- Using gcloud:
gcloud app deploy --project [YOUR_PROJECT_ID] app.yaml index.yaml
(More reference available here.) - Using GAE Launcher: Hit the "Deploy" button available on the App Engine GUI.
Note: User should be provided App Engine Admin rights to deploy the project.