Skip to content

A mobile shopping list application made with Vue, Vuex and Vue Router

License

Notifications You must be signed in to change notification settings

JFusco/vue-shopping-list

Repository files navigation

vue-shopping-list

npm

This repository was created to demonstrate a mobile shopping list application made in Vue, Vuex, Vue Router and some custom Animate.css stuff :) ... The project uses socket.io to get real time feedback when adding or crossing off items in a grocery list as well as adding/removing categories.

The set up instructions assume you are on macOS.

Requirements

The following tools are required to get this running.

Dev tools

  • Node >=7.7.0 <=8.1.x ~NPM will install automatically
  • babel-cli 6.5.3
  • MongoDB - shell version 3.4.3

Installation

Install Node

Visit here - download and install the latest, stable version. This will install npm automatically.

Install dependencies

cd into the root of the project and run this command

$ npm install

Create .env file

  • Copy the contents of .env.example
  • Create a file called .env in the root of the project and paste contents of .env.exmaple
  • Fill in the DB_NAME

Install MongoDB

Download the tgz file

Add mongo to your path - open up your bash profile and add this:

export PATH=${PATH}:/Users/{username}/mongodb/bin

Run mongo

  • Create a db folder inside server/data
  • Run mongo with this command from the root of the project:

mongod --dbpath ./server/data/db

Import data

  • Run this at the root of the project

mongorestore --gzip ./server/data/dump/db-{most recent date}

Run project

$ npm run dev

Open up your browser and navigate to localhost:3000