Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 814 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 814 Bytes

Vue-Rails-online-shop

A Vue.js SPA online shop project

PHASE 6: EXTENSIONS

  • Mashup: Including a social plugin in the main page
  • Supporting AJAX file upload in the admin panel
  • Using AJAX when browsing categories and products in the main page
  • Single page application (no refresh for entire site)

Client Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

Server Build Setup

# first you need to config the database config for PostgreSQL

# install dependencies
bundle install

# setup database
rails db:migrate

# run rails server with hot reload at localhost:3000
rails s