chikeozulumba / africave-rest-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AFRICAVE API

Technologies

Getting Started

Prerequisites

Initial Setup

# Clone the repo
$ git clone https://github.com/chikeozulumba/africave-rest-api.git africave-rest-api

# Change directory to newly created one
$ cd africave-rest-api

# Install dependencies
$ npm install

# Setup environment
$ cp .env.example .env

# Start development server
$ npm start

# Watch for file changes
$ npm run start:watch

# Run server in debug mode
$ npm run start:debug

Docker

# Clone the repo
$ git clone https://github.com/chikeozulumba/africave-rest-api.git africave-rest-api

# Change directory to newly created one
$ cd africave-rest-api

# Docker compose
$ docker-compose up

Testing

# Run tests in normal mode
$ npm test

# Run tests in watch mode
$ npm run test:watch

# Generate coverage report for tests
$ npm run test:coverage

Linting

# Lint code using ESLint
$ npm run lint

Docker

# Build docker image
$ docker-compose build

# Start newly built image
$ docker-compose up

About

License:MIT License


Languages

Language:JavaScript 99.0%Language:Dockerfile 1.0%