Front-End Development Environment Setup
- Make sure you have at least Node v6+
- Run
npm install
- Run
npm run development
for the dev environment
- Run
npm run production
to generate a static file build in the /static
directory
npm test
to run unit tests (which aren't set up yet)
Back-End Development Environment Setup
- Download Vagrant: https://www.vagrantup.com/downloads.html
- Run
vagrant up
within the project's root directory
- Run
vagrant provision
to run the provision script again ONLY if you have modified it
- Run
vagrant ssh
- While in your virtual box, run
‘sudo -i -u postgres
- Paste
export PGUSER=$USER; export PGPASSWORD=$PASSWORD;
, where both $USER
& $PASSWORD
denote the generated values given to you by the provision script
- Run
psql -h localhost marketdata_dev
- Create your own
config.json
file with the following format:
{
"knex" : {
"client": "pg",
"connection": {
"host": "127.0.0.1",
"port": "15432",
"user": "$USER",
"password": "$PASSWORD",
"database": "marketdata_dev",
"charset": "UTF8"
}
}
}