Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Malcak/calendar-api

Repository files navigation

Calendar API

Project structure

$PROJECT_ROOT
│   # Source code
├── src
│   │   # Domain, Logic and Infrastructure
│   │   # shared by the entire service
│   ├── Shared
│   │   # Domain, Logic and Infrastructure
│   │   # related to Events
│   ├── Events
│   │   # Domain, Logic and Infrastructure
│   │   # related to users
│   └── Users
│   # Static files
└── public

Getting Started

Running the app

To run the server it is necessary to set the following environment variables:

  • DB_CNN: URI formats for defining connections between applications and MongoDB instances

    Example: mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017/?authSource=admin

  • SECRET_JWT_KEY: Necessary for signing json web tokens

    Example: 1935fg5968c1r3ha6ae67tal2cbbd1c2aa9h0ca595a5333bfecqfd27ceab5t0b

# install dependencies
npm install

# run in dev mode on port 4000
npm run dev

# generate production build
npm run build

# run generated content in dist folder on port 4000
npm run start

Testing

Jest with supertest

npm run test

Linting

# run linter
npm run lint

# fix lint issues
npm run lint:fix

About

Back-end calendar application for event management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published