test app
This app was bootstrapped with Imagine.ai 💛
Imagine.ai is an app starter on steroids!
Run the app in terminal
- 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
- Install packages and start the application server.
$ npm install
$ npm start
Run the app inside a Docker container
Build the docker container and get it up and running.
$ docker-compose build
$ docker-compose up
Make API calls against the server
- 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.
Run admin bro dashboard
Go to http://localhost:8000/admin
Run tests and check code coverage
$ npm test
$ npm coverage
Lint your code
$ npm lint
$ npm format
Learn More
- 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.