A template with React.js (Next.js) on the frontend and Nest.js on the backend, using Firebase for authentication. Frontend API client is generated using OpenAPI.
- React.js (Next.js) frontend
- Nest.js backend
- Firebase authentication
- OpenAPI schema generation
- API client generation
- Install the dependencies
cd apps/web && yarn install
cd ../..
cd apps/api && yarn install
cd ../..
- Copy and fill out the .env files
cp apps/web/.env.example apps/web/.env
cp apps/api/.env.example apps/api/.env
Fill out the .env files with the correct values.
- Start the server first to generate the OpenAPI schema
cd apps/api && yarn dev
cd ../..
- Generate the API client
cd apps/web && yarn generate:api
cd ../..
- Start the client
cd apps/web && yarn dev