.
├── .github/workflows
│ ├── CICD.yml # github actions workflow
├── plugins # Managed plugins for Fastify
├── routes # Folder structure creates route structure
│ ├── items # /items route
│ │ ├── index.js # the js code executed when the /items route is called
│ ├── root.js # the js code executed when the / routs is called
├── app.js # Main server app
├── package.json
└── README.md
npm i
The website makes API call which involve pulling data from DynamoDB. In order to run these calls locally, you need to configure your AWS credentials file. You need a creds file like [your-name]_credentials.csv. This file contains your Access key ID and Secret access key. Do not share these keys with anyone. Follow these instructions to tell the server to use your credentials file. Once this is done, you can run the server using the intructions below.
-
Start the fastify server in dev mode
npm run dev -
The server will automatically refresh with file changes
Starts the fastify server in dev mode.
Open http://localhost:3000 to view it in the browser.\
Starts the fastify server in prod mode.
This is the command that the prod box runs.