juxt
Grocery Price Comparison App
Tech
- postgres
- node: koa, knex/bookshelf.js
- ui: react, redux, redux-saga, immutable, superagent, react-bootstrap, less
Developing
- "npm run dev" - runs everything you need for development
- go to http://localhost:8080/
- api server is running on http://localhost:3000/
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.