OpenPolytechnicBITProjectGroup / Musician-Venue_App

Repo for the Musician-Venue WebApp
1 stars 0 forks source link

Musician-Venue_App

Repo for the Musician-Venue WebApp

Stack

Quickstart

Setup

$ npm install -i

Run locally

To add some data to the database, use the following command:

$ npm run migrate

Running the tests will also create some data.

# run in developement mode
$ npm start

or

# also runs in development mode
$ node index.js

or if you have the heroku cli installed

$ heroku local web

Important for running the node server

When running in "dev" mode navigate to http://localhost:5000 to see the application.

Development protocol notes

The branch \<dev> is the current mainline for development, pull from this branch git fetch to get the lasest code base, run npm install -i, create your branch git checkout -b <your-branch> and make your changes.

On completion of your code changes push your branch to the repository, git push origin <your-branch> and create pull request for merging.

Siginificant updates to the app can be merged to production, which will auto-deploy to the heroku hosted app, this requires a reviewed pull request before merging. The Heroku pipline can create a temporary review app for all open pull requests, but needs to be connected to the grapheneDB if api requests are required for testing.

Using Gulp

Installing

Use the following command to install gulp globally. This will enable using gulp commands.

$ npm install -g gulp

Compiling/Concatenating Javascript

Don't edit package.js manually. It is created by gulp. Edit the files in ./client/assets/js instead

Gulp is currently set to concatenate the following files to ./client/js/package.js

Use ./gulpfile.js to add more.

Use the following command to manually process the above files:

$ gulp scripts

Gulp can also watch all files in ./client/js for changes and automatically process them when they're saved. Note: This will also watch less files.

$ gulp watch

Compiling less

Gulp compiles assets/less/style.less -> css/style.css

Any files that are imported to that file @import() will automatically be included.

To compile all less files -> style.less, run the following command:

$ gulp less

As with the scripts, the less files are automatically watched for changes.

$ gulp watch