Giter Club home page Giter Club logo

inditeminds-api's Introduction

inditeminds-api

A Blogs RESTful API created with Expressjs

Setup

  • Production Mode

    • Make sure to have Docker & docker-compose installed in your machines
    • You can build the image locally or use from my hosted images in Docker Hub
    • Setup your environment in docker-compose.yml api services

    Recommended to use MongoDB Atlas (free plan or paid plan) for environment Production MongoDB URL

    • Run docker-compose up -d on your terminal

    Use -d parameters for running on backgrounds

  • Development Mode

    • Make sure to have MongoDB & Redis installed & runnning in your machines
    • Create .env file inside src folders
    • Create MongoDB Database for development and set database uri in ./src/.env files
    • Change Directory to src folders
    • Setup your environment like sample.env inside .env files
    • Run commands npm i for installing all modules,packages,etc

    Using npm i or npm install its okay

    Use another port its okay ex.5000,3000,8000

  • Test Mode

    • Create MongoDB Database for test and set database uri in ./src/.env files
    • Repeat from Dev Mode Steps until running commands npm i
    • Run commands npm run test for run unit test & functional tests
      • Test Results :
        • Total Tests : 118 (All Passed)
        • Tests Finished : (based on performances)
    • Run commands npm run coverage for coverage results of tests
      • Coverage Results :
        • Statements : 92.86% ( 585/630 )
        • Branches : 94.17% ( 113/120 )
        • Functions : 95.89% ( 70/73 )
        • Lines : 92.85% ( 584/629 )
  • API Base Routes

inditeminds-api's People

Contributors

pickhd avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.