- Start a Postgres database server on your machine or in the cloud.
- Set the following environment variables in your .env file
POSTGRES_HOST=<address-where-database-running>
POSTGRES_PORT=<port-where-database-running>
POSTGRES_DB=<database-name>
POSTGRES_USER=<username-for-database>
POSTGRES_PASSWORD=<password-to-database>
DB_DIALECT=postgres
JWT_SECRET=<secret>
- Install packages and start the application server.
$ npm install
$ npm start
Build the docker container and get it up and running.
$ docker-compose build
$ docker-compose up
- Go to http://localhost:8000/swagger to see Swagger documentation for API endpoints.
- Run the APIs by clicking the "Try it now" button on the Swagger page.
Go to http://localhost:8000/admin
$ npm test
$ npm coverage
$ npm lint
$ npm format
- Learn more about:
- the Node architecture choices used.
- the best practices followed.
- Imagine is in beta - here are the known issues that we are working to fix.