My implementation of vidly from Programming with Mosh node.js course. See https://codewithmosh.teachable.com/p/the-complete-node-js-course
- Node v. 8 - tested with version 8.11.1
- Yarn - tested with v 1.6.0
- MongoDB - tested with 3.6.4
To install all dependencies run:
yarn install
Copy config/default.json
to config/development.json
and edit it.
Set jwtPrivateKey
to a secret string used for encrypting the JWT-token.
Set db.url
to your MongoDB connection string. For example:
mongodb://localhost:27017/vidly
To start the node server run
node app.js
By the default to server will listen on port 3000.