- express
- react
- gulp
- sass
- browserify
- babel
- knex
- bookshelf
- Download / fork / clone
- Run
npm install -g gulp knex
- Run
npm install
to install dependencies - Run
brew/apt-get install redis postgres
to get redis which is used for storing session data, and postgres - In postgres, create a database called
intercrop
, a user for the app, and give the user permissions to the database createdb intercrop
su - postgres
psql template1
CREATE USER appusername WITH PASSWORD 'apppassword';
GRANT ALL PRIVILEGES ON DATABASE "intercrop" to appusername;
\q
exit
- Copy
config.example.js
toconfig.js
and update the values appropriately knex migrate:latest
knex seed:run
- Run
gulp
to start the server - Point your browser at http://localhost:3000/ and enjoy
If FSWatcher
throws an error, run echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p