This project is an example for the Build a Secure NestJS API with Postgres blog post.
- Node.js version 8+
- Docker Desktop
- A free Okta developer account
- Clone or download this repository
- Run
npm install
to install the project dependencies - Copy
.env.sample
to.env
- Add a new Service application to your Okta developer account named "Instamiligram"
- Add a new Okta API token (API -> Tokens -> Create Token) and copy this token to the
.env
file to replace{yourApiToken}
- Update
.env
and replace{yourOktaDomain}
with the URL for your Okta account (e.g.dev-123456.oktapreview.com
) - Run the following commands
docker-compose up -d
npx nodemon server.js --ext ts