- Node.js >= 8
- MongoDB >= 3.2
git clone https://github.com/cezerin/cezerin.git cezerin
cd cezerin
npm install
npm run buildnpm startAlso, you can run application with PM2 and watch for modifications.
- Install PM2 globally
npm install pm2 -g
- Run application
pm2 start process.jsonOpen http://localhost:3000 to see your store.
Dashboard - http://localhost:3000/admin
API - http://localhost:3001
By default MongoDB connection string is mongodb://127.0.0.1:27017/shop
Change it with environment variables
DB_HOST=255.255.255.255 \
DB_PORT=27017 \
DB_NAME=shop \
DB_USER=user \
DB_PASS=password \
# or SET a DB_URL with mongodb connection string(https://docs.mongodb.com/manual/reference/connection-string/)
DB_URL=mongodb://db1.example.net:27017,db2.example.net:2500/?replicaSet=test
npm startThis script will:
- test MongoDB connection
- add default data
- create basic indexes
npm run setup