- Install Node.js and make sure Node Package Manager (npm) is also installed into your machine.
- Install dependencies with
npm install
. If you are in production, usenpm install --production
. - Create
.env
file in the root.NODE_LOCAL_PORT=3000 DB_URL=mongodb://127.0.0.1:27017/oyt-website
- Run it with
npm start
.
- Make sure your machine has MongoDB installed.
- Make sure MongoDB is currently working in your machine with
sudo systemctl status mongod
. - Seed your local database with
npm run seed
.