Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.24 KB

developer.md

File metadata and controls

67 lines (42 loc) · 1.24 KB

Developer Guide

Setup Application Locally

Clone the repository locally:

    git clone https://github.com/diptadas/flarn.git

Build & Run Backend Application

  1. Building Backend Application:
    cd backend
    mvn package
  1. Run Backend Application:
    java -jar target/flarn-<version>.jar

This will start a development server on port 8085, which is used by the Frontend application.

Build & Run Frontend Application

  1. Building Frontend Application:
    cd frontend
    npm install
  1. Run Frontend Application:
    npm run serve

This will start a development server on port 8080, which can accessed by visiting http://localhost:8080.

Deploying Application

We deployed the frontend to Netlify and the backend to Heroku.

TODO: Add netlify and heroku scripts.

Deploy the frontend:

    cd frontend
    npm run build

This will produce static HTML and JavaScript files, that can be deployed to any webserver.

Deploy the backend:

Heroku expects a Java application in the root folder. Use this git command to push the backend subdirectory:

    git subtree push --prefix backend heroku master