vic3king / barefoot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Barefoot

Barefoot Nomad API

API Documentation

The full API documentation can be found by following the link below:

http://localhost:4111/v1/api-docs/

Requirements and Installation

Via Cloning The Repository

# Clone the app
git clone https://github.com/vic3king/barefoot.git

# Switch to directory
cd barefoot

# Install Package dependencies
npm install

# create a .env file and make a clone of the .example.env
touch .env

#Start the application
npm run start:dev

#View the application
navigate to localhost:4111 to view the application

Testing

npm run test

Technologies

Backend

  • NodeJS is a JavaScript runtime built on Chrome's V8 JavaScript engine
  • Typescript TypeScript is JavaScript with syntax for types.
  • Express JS A minimalist web framework
  • MongoDB The database for modern applications.
  • MongooseORM Elegant mongodb object modeling for node.js
  • Jest Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
  • Supertest SuperAgent driven library for testing HTTP servers
  • Joi The most powerful schema description language and data validator for JavaScript.

Linter(s)

  • GTS gts is Google's TypeScript style guide, and the configuration for our formatter, linter, and automatic code fixer.
  • ESLint provides a pluggable linting utility for JavaScript.
  • Prettier Prettier is an opinionated code formatter with support for Javascript

Style Guide

Compiler

  • Typescript A Typescript compiler for converting codes written in typescript to javascript

API Endpoints

Request End Point Action
POST / Welcome screen
POST /v1/users/ create a user
GET /v1/users Get all users

Improvements

  • Central error handler
  • More tests and Type Checks
  • Dockerize
  • Deploy

Authors

  • Akaniru Victory - Initial work - Vic3King

About


Languages

Language:TypeScript 97.1%Language:JavaScript 2.9%