- nvm
- node v16.8
- yarn v1.22
- Docker Desktop
yarn setup- modules/backend
- Copy .env.sample to .env
yarn db:setupyarn db:startyarn db:resetyarn db:seedyarn 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/frontendand runyarn build:api-client - The frontend API client should contain the new endpoint
- You must manually seed the first user
{
"id": "uuidv4",
"providerId": "iprotect@gmail.com",
"provider": "google-oauth2",
"name": "IProtect"
}- AWS WAF > IPSets
- Create an IPSet for both IPv4 & IPv6
- You must enter a description
- Copy / paste both
nameandidinto project creation - Create a new IAM user and enter AWS key / secret