This is a living build script. Documentation changes along with the build script to ensure an easy experience for all.
Runs both server and client tests
Runs task lint before this
Runs tasks test:client test:server after this
echo "Running all tests..."
Runs all client tests.
echo "Running client tests..."
cd ./client
npm test
Runs all server tests.
echo "Running server tests..."
cd ../server
echo "TODO: No server testing is being done"
Verifies that all the client and server code meets the minimum coding standards
Runs tasks lint:client lint:server after this
echo "Running all linters..."Verifies that all the client and server code meets the minimum coding standards
cd ./client
npm run lint --fixVerifies that all the client and server code meets the minimum coding standards
cd ./server
echo "No server linting is being done"Runs tasks start:client start:server after this in parallel
echo 'Starting up the client and server'Starts up the angular client app
cd ./client
npm start
Starts up the server API
cd ./server
echo "No server to start as yet"Deploys the client and server
Runs tasks deploy:client deploy:server after this
echo "Deploying client and server..."Deploys angular client application to heroku
# Pushing Server to Heroku
git subtree push --prefix client heroku-client master
# Scale up server
heroku ps:scale web=1 --app lj-client-app
# Open in browser
heroku open --app lj-client-appDeploys express server application to heroku
# Pushing Server to Heroku
git subtree push --prefix server heroku-server master
# Scale up server
heroku ps:scale web=1 --app lj-server
# Open in browser
heroku open --app lj-serverSSH into server
heroku run bash --app lj-serverSSH into client
heroku run bash --app lj-client-app