stream2stream / arrakis_v2

1 stars 2 forks source link

Welcome to the TDI Graduate Training Coding Project

How to get started:

  1. Fork this repository into your own personal space on GitHub.
  2. You might want to setup branch protection if you are working in a team so direct commits to main are restricted and then branches and pull requests/reviews are required for all team members:
    • In your repository navigation to Settings > Branches
    • Under “Protected Branches” select 'main'
    • Enable the following settings:
    • Protect this branch
    • Require pull request reviews before merging
    • Dismiss stale pull request approvals when new commits are pushed
    • Include administrators

Working with the project:

You can work with this project locally or in Github Codespaces. With Codespaces you get 120 hours free per month, so keep within your quota.

  1. Java 11 should be installed on your machine, verify
java --version
  1. Build the project
mvnw.cmd clean install (Windows)
./mvnw clean install (Mac/Codespaces/Linux)

Run the project for local testing

For local testing before pushing the code use the following

mvnw.cmd spring-boot:run -pl java-api (Windows)
./mvnw spring-boot:run -pl java-api (Mac/Codespaces/Linux)

Frontend URL - http://localhost:8080/index.html

Further Reference

Note: From Codespaces, you can allow public access to the running application, see here for details. This will allow others outside of your codespace to navigate to the url - this can be useful for team testing or demos. Alternatively you can push the code to a server as in the next section.

Run in Codespace [Optional]

Run on a server [Optional]

Note: you might need to scale the app resources

fly scale memory 2048 -a {appname} (To scale memory)

or

fly scale vm shared-cpu-2x {appname} (To scale CPU)

See fly documentation for more guidance