Skip to content

A NestJS, Domain-Driven Design reimplementation of Halo 3's web services.

Notifications You must be signed in to change notification settings

TempAccountNull/Sunrise-BackEnd

Repository files navigation

Sunrise Webserver Build status

Webserver for Halo 3

Preparing the project

  1. Install dependencies with the npm install command.
  2. Prepare create a settings.json file in the project root, following this structure:
  API_PORT=8080
  MONGO_URI
  1. Build the web service with the npm run build command.
  2. Run migrations to ensure your database is up to date, using npm run migrate.
  3. If you wish to insert test data, use the npm run seed command.

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running in Docker

  1. Run the npm run build:docker command to build the docker container.
  2. Run the npm run start:docker command to compose and start.

In the case of port conflicts, review/edit the docker-compose.yml file accordingly. The docker container is built with seeding for demo purposes. If desired this can be removed from the Dockerfile.

Documentation

Once the app is running, swagger documentation can be found at the /api route. eg. if you are running the web service locally, navigate to http://localhost:8080/api


Last Updated 13/08/22 by Codie Stella 🐧

About

A NestJS, Domain-Driven Design reimplementation of Halo 3's web services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published