Coder Social home page Coder Social logo

simplebks-api's Introduction

Simplebacks API

NodeJS API service for Simplebacks

Getting Started

  • Click on the "Clone" button.
  • You can decide to download the zip file of the app onto the system or you can clone the repository from the terminal
  • If you decide to clone the repository from the terminal, navigate to a directory of your choice on that terminal.
  • Using SSH; copy and paste the following below on your terminal [email protected]:chinemelu/simplebks-api.git
  • Using HTTPS; copy and paste the following below on your terminal https://github.com/chinemelu/simplebks-api.git
  • Once the folder is cloned onto your computer, cd into the root of the folder and type npm run install in the terminal before pressing enter
  • To run the program on a development server type npm start and press enter

Running the tests

  • The tests have been written using Jest and Supertest.
  • Write the following command on terminal.
  • npm test
  • If the tests are successful, they will complete without failures or errors.
    .........
    ----------------------------------------------------------------------
    16 passing
    

Deployment

The steps written below are for Heroku Deployment

  • cd into the root folder of the application
  • For a first time deployment, type heroku create app-name and press enter
  • If you are in the application's master branch, you type git push heroku master and press enter
  • Else, if you are, for example, in a dev branch, you type git push heroku dev:master and press enter
  • The application will then be deployed onto Heroku and the url of the application will be given once the deployment is complete
  • For heroku deployment debugging purposes, type heroku logs --tail in the terminal
  • For subsequent deployments, if changes are made and committed, type git push heroku branch-name:master -f in the terminal and press enter
  • For more information, see the Heroku documentation

Built With

  • express - Fast, unopinionated, minimalist web framework for Node.js.
  • dotenv - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env.
  • PM2 - PM2 is a production process manager for Node.js applications with a built-in load balancer.
  • Winston - A logger for just about everything.
  • Mongodb - NoSQL database
  • cors - CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.

Authors

  • Chinemelu Anthony Nwosu

simplebks-api's People

Contributors

chinemelu 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.