Skip to content

CIRCUIT ON allows you to manage images for displaying on TV based on a schedule. This is super useful for Gyms that need to display different images simultaneously on multiple TVs.

License

Notifications You must be signed in to change notification settings

leogomesdev/circuit-on-backend

Repository files navigation

Nest Logo

Build with NestJS framework

Coverage

🌐 CIRCUIT ON (Backend)

See application structure on the image below:

System tiers

This is the Backend application.

For Frontend application, please go to https://github.com/leogomesdev/circuit-on-frontend

📚 Description

This project provides APIs for the frontend application.

Not sure about how a REST API works? See on the image below:

API Workflow

📲 Main technologies used

📝 Lint

This project uses ESLint packages to ensure code inspection and formatting. If you change the code, make sure to run the command below for code inspection:

npm run lint

💡 Requirements

You must create an OKTA Application (for Authentication). Follow this doc for instructions, to get your Client Id and Domain/Issuer

💻 For local usage:

🚀 Running

💻 Locally

  • Be sure to install the requirements

    • If you have nvm - Node Version Manager installed, you could just run nvm install and it will install the correct version of Node.js based on file .nvmrc
  • Create .env file:

      cp -v .env.example .env
  • Edit .env file to provide the required environment variables.

  • Install dependencies:

      npm install
  • Start the application:

      # development
      npm run start
    
      # watch mode
      npm run start:dev

☁ Production Environment

Follow this doc for instructions

✅ Tests

  # unit tests
  npm run test

  # test coverage
  npm run test:cov

🗂 MongoDB Indexes

Please create indexes for supporting your application complex aggregation pipelines. Follow this doc for instructions

🔗 Usage

Consult the API documentation available at Swagger http://localhost:3000/api

To generate and download a Swagger JSON file, navigate to http://localhost:3000/api-json

👀 TL;DR

  1. Open Postman and make API calls. Follow this doc for instructions

About

CIRCUIT ON allows you to manage images for displaying on TV based on a schedule. This is super useful for Gyms that need to display different images simultaneously on multiple TVs.

Topics

Resources

License

Stars

Watchers

Forks

Languages