nevatrip-mvp-server

Install

git clone git@github.com/realetive/nevatrip-mvp-server.git
cd nevatrip-mvp-server
cp .env.example .env
npm install

Environment variables

Set/change the config in .env file.

Usage

Production

  1. Run the builder:
NODE_ENV=production npm run make 
  1. Run server:
NODE_ENV=production npm start

Develop

Start dev-server

npm run dev

Debug

  1. For check api response for page, add json=1 param to URL, for example: http://localhost:3000/?json=1
  2. For check bemjson structure, add bemjson=1 param to URL, for example: http://localhost:3000/?bemjson=1