Template Full Stack serverless application composed of:
- RESTful API build based on FastAPI framework
- Frontend UI build based on React and Next.js framework with Typescript template
- automatic deployment scripts based on Serverless framework and deploying both UI and RESTful API to Google Could Run cloud service
- Make sure that all project dependencies are installed by running:
make deps
- Fill your .env config files based on .env.example examples:
cd todo-frontend/.env.example todo-frontend/.env
Edit the todo-frontend/.env
file manually and fill all the required vars.
- Run both API and Frontend locally:
make run
- Make sure both API and UI are up-and running opening those URLs in your browser Rest API - http://localhost:8000 Frontend UI - http://localhost:3000
In order to deploy project to Google Cloud Run service please use this command:
make deploy
To clean the project, remove all dependencies and start from scratch you can use command:
make clean