Clone the repository locally:
git clone https://github.com/diptadas/flarn.git- Building Backend Application:
cd backend
mvn package- Run Backend Application:
java -jar target/flarn-<version>.jarThis will start a development server on port 8085, which is used by the Frontend application.
- Building Frontend Application:
cd frontend
npm install- Run Frontend Application:
npm run serveThis will start a development server on port 8080, which can accessed by visiting http://localhost:8080.
We deployed the frontend to Netlify and the backend to Heroku.
TODO: Add netlify and heroku scripts.
cd frontend
npm run buildThis will produce static HTML and JavaScript files, that can be deployed to any webserver.
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