Example Back-end Node Application
.vscode | ||
migrations | ||
src | ||
.env.example | ||
.gitignore | ||
docker-compose.yml | ||
knexfile.js | ||
package-lock.json | ||
package.json | ||
README.md |
README.md Generator for Node.js Application
Setting up the Application
To set up this Node.js application, follow the instructions below:
-
Copy
.env.example
to `.env Open your terminal and navigate to your project's root directory.$ cp .env.example .env
-
Modify the
.env
file if you wish. TheDB_URL
should already be set correctly. -
Start the postgres database:
$ docker-compose up -d
-
Install the packages
$ npm i
- Run the tests
$ npm run test
- Start the Express application.
$ npm run serve