Skip to content
Grocery price comparison app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
migrations
public
seeds
src
test
.babelrc
.eslintrc
.gitignore
API.md
README.md
knexfile.js
package.json

README.md

juxt

Grocery Price Comparison App

Home Page Home Page

Results Page Results Page

Tech

  • postgres
  • node: koa, knex/bookshelf.js
  • ui: react, redux, redux-saga, immutable, superagent, react-bootstrap, less

Developing

Database migrations

  • "npm run migrate:latest" migrate to lastest version
  • "npm run migrate:rollback" rollback a version
  • "npm run migrate:redo" go back and move forward
  • "npm run seed:run" seed database

Installation

Setup Postgres

Install Taken from: here

brew update && brew install postgresql
initdb /usr/local/var/postgres
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

Create User

createuser -P -s -e -d juxt

Set password to "juxt"

Create DB

createdb juxt
createdb juxt_test

Install Node and project

git clone https://github.com/jonathanhuang13/juxt.git
cd juxt
brew install node
npm install 

Setup to run

npm run migrate:latest
npm run seed:run
npm run dev

Go to http://localhost:8080/. API server is running on http://localhost:3000/. Add items by click on the item search bar before you go to results because store_item JOIN table is not seeded.

You can’t perform that action at this time.