/fastapi-react-serverless

Full stack app composed with FastAPI-based Python API, Next.js-based React frontend and serverless-framework-based automatic deployment script to Google Cloud Run service

Primary LanguagePython

FastAPI + React + Serverless

Template Full Stack serverless application composed of:

Getting started - run locally

  1. Make sure that all project dependencies are installed by running:
make deps
  1. 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.

  1. Run both API and Frontend locally:
make run
  1. 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

Deploy to Google Cloud Run

In order to deploy project to Google Cloud Run service please use this command:

make deploy

Cleaning project

To clean the project, remove all dependencies and start from scratch you can use command:

make clean