Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

arunrreddy/homeyantra_project

Repository files navigation

product_demo

Demo for homeyantra.com project

Build Setup

# change node version to node 8
nvm use 8 (Install nvm from github, if not installed)

# install dependencies
npm install

# Create database with following credentials
CREATE DATABASE product_db;
CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';
GRANT CREATE, SELECT, INSERT, UPDATE, DELETE, ALTER, INDEX, DROP, REFERENCES ON product_db.* to 'myuser'@'%';
Note: please use the following credentials as that is what is used in the code too.

# run knex migration
change directory to project location
DEBUG=knex:query,knex:bindings,knex:tx knex migrate:latest --knexfile config/knexfile.js
Note: Install knex globally with the node version as 8, if the above command fails (npm i knex -g)

# run knex seeds file
change directory to project location
DEBUG=knex:query,knex:bindings,knex:tx knex seed:run --knexfile config/knexfile.js
Note: Install knex globally with the node version as 8, if the above command fails (npm i knex -g)

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# serve production build
npm run prod

About

Project Assignment for homeyantra.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published