Skip to content

vduits/account-reservation

Repository files navigation

Account Reservation

Further details about this repo will follow on first release.

Development notes

For development Visual Studio Code has been used for the front end and IntelliJ Idea for the backend.

First get PostgreSQL up and create the several configuration files from the integrations.

After that you can use npm install in the main front-end folder. Details can be found in the same folder using angular cli.

With angular cli you can run ng serve, or you can use npm start which will do the same an d run the application at http://localhost:4200. The java app will run by default at http://localhost:8048.

The front-end will require the java backend to be able to render most pages due to relying on its endpoints.

PostgreSQL

The backend requires a PostgreSQL instance to be active. A docker-compose.yaml has been provided to start one through docker. Within the folder in your favourite CLI use docker-compose up to start a PostgreSQL instance.

Integrations

This service works with both Google and Discord OAuth providers. You will need to generate client-ids and credentials for both of these using the steps below.

Google

You need to create a google project and then create oauth credentials.

Pick Web application and http://localhost:4200 as an authorized origin.

The result information will contain a uri that ends on .apps.googleusercontent.com. With both the project name and the client-id for OAuth you can create a google.ts file in the environments folder and fill in the details in the format used at the example file.

Discord

You need to create a Discord Application and then at OAuth2 create a redirect.

For local development that is http://localhost:4200/authentication

The front-end will need a discord.ts file in environment folder. This should also be in the same format as the example file.

The backend needs to contain your discord app its client-id and client-secret at application.yaml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published