Giter Club home page Giter Club logo

league-manager-nestjs's Introduction

Nest Logo

Description

An app for managing a soccer league with the ability to add/remove members, teams, and matches. Also manages staff information and auditing.

Configuration

This project is currently configured to run on the following localhost ports via Docker containers:

  • postgres: 5433
  • app: 3001

However, these can be changed via the docker-compose.yml file if desired.

A .env file is required to be able to run this project. Make sure that your .env has DB_HOST = postgres set. Below is a sample .env:

NAME = MYAPP
HOST = localhost
PORT = 3000
DB_CONNECTION = postgres
DB_HOST = postgres
DB_USERNAME = username
DB_PASSWORD = passw0rd
DB_DATABASE = league
TYPEORM_PORT = 5432
TYPEORM_ENTITIES = src/**/models/*.entity{.ts,.js}
TYPEORM_MIGRATIONS = src/database/migrations/*{.ts,.js}
TYPEORM_MIGRATIONS_DIR = src/database/migrations

Add the following to your package.json:

"start:docker": "(npm run migration) & nest start --watch"

Running the containers on Docker

To start up the postgres and app containers needed to use this app as well as run migrations, run:

docker-compose up

OpenAPI Documentation

OpenAPI Documentation is available for viewing endpoints and their operations, as well as DTO's and types. This is available at localhost:{app container port}/docs (localhost:3001/docs by default).

Installation

$ npm install

Running the app

# development

$ npm run start



# watch mode

$ npm run start:dev



# production mode

$ npm run start:prod

Test

# unit tests

$ npm run test



# e2e tests

$ npm run test:e2e



# test coverage

$ npm run test:cov

License

Nest is MIT licensed.

league-manager-nestjs's People

Contributors

beeonkaa9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

david-noel19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.