Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Your-Dev-Life/DuplicaApi

Repository files navigation

API Documentation

API Status

Build Status CodeFactor

Table of contents

Follow the next steps to Install, Run, Test and Deploy the API.

Dependencies

  • NodeJS
  • MongoDB
  • Docker (Optional)
  • Nodemon Globally (npm install -g nodemon)

Install

npm i

Run

npm start

Tests

Runs all tests like in the CI environment

npm test

Runs all tests like in the CI environment and keep watching

npm run test:auto

Coverage tests

npm run coverage

Lint tests

npm run lint

Deploy

It automatically deploys the code to Staging when it is committed in the Master branch.

Structure of the API

.
├── server                  # Server Source files
    ├── api                 # API Modules/Routers/Features files
    ├── auth                # Authentication files
    ├── config              # Config files
    ├── error               # Error builder, handler and types
    ├── log                 # Loggers
    ├── middleware          # Middlewares of the application
    ├── store               # Stores e.g. Database
    ├── server.js           # Server definition file of the application
├── tests                   # Setup, tools and utilities for tests
    ├── utils               # Tools and utilities for tests
    ├── setup.js            # Setup for all integration tests
├── index.js                # Main file of the application
├── package.json            # NPM configuration file
├── LICENSE                 # MIT License file
└── README.md               # This file

Deploying to prod

Right now this happens manually in the Heroku pipeline.~~~~~~~~~~~~~~~~

About

API for the Duplica application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published