This repo is a fork from https://github.com/komarserjio/notejam. It adds CI/CD to deploy notejam into multiple environments, whose infrastructure is orchestrated via Terraform.
Notejam is an application implemented using Express.js microframework.
Express version: 4.2
Middlewares/extentions used:
- Passport.js for authentication
- Node ORM 2 for database
- Mocha and Superagent for testing
- ... and others
Clone the repo:
$ git clone https://github.com/binte/notejam.git YOUR_PROJECT_DIR/
Use npm to manage dependencies.
Install dependencies
$ cd YOUR_PROJECT_DIR/expressApp
$ npm install (or npm ci)
Create database schema
$ cd YOUR_PROJECT_DIR/expressApp
$ node db.js (or run db)
Start built-in web server:
$ cd YOUR_PROJECT_DIR/expressApp
$ node ./bin/www (or run start)
Go to http://127.0.0.1:3000/ in your browser
Run unit tests:
$ cd YOUR_PROJECT_DIR/expressApp
$ ./node_modules/mocha/bin/_mocha tests (or run test)
Please send your pull requests in the master
branch.