1.0.0 • Published 6 years ago
redapple-api-rewrite v1.0.0
For Developers
Setup workspace
- Download redis client (Recommended: brew install redis)
- Run
redis-serverto start local redis server. - Clone repository
- Open terminal and cd to the directory
- Create a
configfolder in thesrcdirectory and add adev.envfile to it. - In the
dev.envfile add configs as described in the Env Config section below. - Run
npm install - Run
npm run dev
Env Config
Here is a example dev.env file:
PORT=[YOUR_PORT]
MONGO_URI="[YOUR_MONGO_URI]"
JWT_SECRET="[JWT_SIGNING_SECRET]"
AUTH0_JWKS_URI=https://{AUTH0_URL}/.well-known/jwks.json
AUTH0_AUDIENCE={AUTH_0_AUDIENCE}
AUTH0_ISSUER=https://{AUTH0_URL}
AWS_SNS_ACCESS_KEY={SNS_ACCESS}
AWS_SNS_SECRET_KEY={SNS_SECRET}Scripts
Run these scripts with npm run [SCRIPT_NAME]
- dev - Starts the server with nodemon (For hot reloading).
- build:docs - Builds the static api docs.
Important Todo
- Add more validations to schemas
- Add helmet
1.0.0
6 years ago