Code Monkey home page Code Monkey logo

skimmit's Introduction

Skimmit API

Getting Started

Installing Dependencies

Node.js 14.x

Follow instructions to install the latest version of Node.js for your platform in the Node.js Website After installation, make sure you have Node and npm installed by running the following commands:

node --version
npm --version

If the version of each of them appears, they are installed correctly.

npm Dependencies

Once you have Node.js and npm installed, install dependencies by opening a command prompt and run the following command:

npm install

This will install all the required packages within the package.json file.

Key Dependencies
  • Express.Js is a lightweight backend microservices framework. Express is required to handle requests and responses.

  • MongoDB is a lightweight NoSQL database that is used to store data as documents.

  • Mongoose is a MongoDB ODM that we will use to handle connection to MongoDB.

  • Passport.Js is a node module used to control Authentication/Authorization in the application.

Application Setup

With Node.Js and MongoDB installed, you will need to set your environment variables by doing the following:

  • Create a new file in the main directory with the name .env.
  • Copy the contents of the .env.example to the newly-created .env file.
  • Fill the marked spaces with your own environment variables.
  • Note: You can uncomment the line #NODE_ENV=production to set the Node Environment to production.

Running the server

From within the directory run the following command for development environment:

npm run start-dev

OR this command for production environment:

npm run start-prod

this will start the server on your local environment on a specific PORT.

Testing

Tests can be run using Postman Import the collection in the file Skimmit.postman_collection.json to Postman then run your tests, but make sure you set your base_url.

API Reference

  • Base URL: this application is deployd on Heroku with a base url https://Skimmit-api.herokuapp.com. However, if you run it locally it will be hosted at the default, http://127.0.0.1:3000/.
  • API Documentation: You can find full API documentation here Skimmit API Documentation
  • Authentication: A full explanation of the authentication techniques in the full API Documentation.

skimmit's People

Contributors

raymond-youssef 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.