Skip to content

Build System, Deployment and CI

RemiENG edited this page Apr 8, 2019 · 4 revisions

Backend

Building and Running the Backend Application Locally

To build the application, issue the following command from the project's root directory:

$ ./gradlew build

To run the application, issue the following command from the Root/Backend:

$ gradle bootRun

Alternatively, you may run the application within eclipse by selecting "Run as Spring Boot App" for CooperaorApplication.java.

Deploying the Backend Application

To deploy the application, issue the following commands from the project's root directory:

$ git remote add Backend-heroku https://git.heroku.com/cooperator-backend-0000.git
$ git push Backend-heroku master

The deployed application can be found here

Testing the Backend Application

Visit this page for more information on running the Backend test suite.

Frontend

Building and Running the Frontend Application Locally

To build the application, issue the following command from Root/Frontend:

$ npm install
$ npm run build

To run the application, issue the following command from Root/Frontend:

$ npm run dev

Deploying the Frontend Application

To deploy the application, issue the following command from Root/Frontend:

$ git remote add Frontend-heroku https://git.heroku.com/cooperator-frontend-0000.git
$ git push Frontend-heroku master

The deployed application can be found here

Travis CI

Every push to the project's repository triggers two build jobs on Travis CI. Visit the build history for the project here

Backend Job Configuration

The application is built by issuing ./gradlew build, which builds and tests the backend application (See Testing Document). Upon successful completion of the build, the application is deployed to it's Heroku server here

Frontend Job Configuration

The application is built by issuing npm run build, which builds the frontend application (without testing). Upon successful completion of the build, the application is deployed to it's Heroku server here