- nvm
- node v16.8
- yarn v1.22
- Docker Desktop
yarn setup
- modules/backend
- Copy .env.sample to .env
yarn db:setup
yarn db:start
yarn db:reset
yarn db:seed
yarn start
- modules/frontend
- Copy /env/.env.sample to /env/.env.local
yarn start
Whenever you make changes to the API on the backend, the interface on the frontend also needs to be updated. The project uses a combination of Swagger to generate the OpenAPI specifications, and swagger-typescript-api to generate the frontend client.
- Make changes to API
- Start your server and navigate to localhost:4000/swagger/docs
- Test your API and ensure it's running correctly
- Navigate to
modules/frontend
and runyarn build:api-client
- The frontend API client should contain the new endpoint
- You must manually seed the first user
{
"id": "uuidv4",
"providerId": "[email protected]",
"provider": "google-oauth2",
"name": "IProtect"
}
- AWS WAF > IPSets
- Create an IPSet for both IPv4 & IPv6
- You must enter a description
- Copy / paste both
name
andid
into project creation - Create a new IAM user and enter AWS key / secret