Softwares
Make sure you have Node version >= 8.0, NPM >= 5 and MongoDB
Download and unzip the file from codecanyon
navigate inside the directory
1cd arialshop
Start database
- Start mongodb in a separate shell
Try-1: npm run database
Try-2: In Windows operating system we can start it by opening the following file
|
|
Start development server
- Open another terminal (command prompt)
install the dependencies with npm
npm i
serve with hot reload at localhost:8080
npm run dev
build for production with minification
npm run prod
build client for production and view the bundle analyzer report
npm run build --report
Deploy to Heroku
Run command
npm run prod
Install mLab heroku addon
1heroku addons:create mongolabUpload everything inside dist directory to Heroku
Run command
npm i --production
Check heroku logs
heroku logs --tail
for any error