Giter Club home page Giter Club logo

node-api-starter's Introduction

#node-api-starter Boilerplate code for a Node.js API Server.

Technologies Used

  • Express (Server)
  • Nodemon (Dev)
  • Mongoose (DB/Schema)
  • Morgan (Logging)
  • Passport (Auth)
  • bCrypt (Encrypt/Decrypt)
  • JWT (Tokens)

Machine Preparation

You will need Node.js and MongoDB installed in your local environment.

Usage

  1. Clone repo - git clone https://github.com/jaspervalero/node-api-starter.git

  2. Install dependencies - npm install (1st time only)

  3. Create 'config.js' file in root directory with the following code to start:

     // Hold application secrets and config
     module.exports = {
         secret: '5lB8f4TF5CH5LeIK04te1I0UA1qTt7pw'
     };
    

    Make sure to replace the secret's value with your own random secret string.

    Visit http://randomkeygen.com to generate a random secret string.

  4. Launch server - npm run dev

  5. Access via http://localhost:3090/

node-api-starter's People

Contributors

jaspervalero avatar

Watchers

João Gabriel Junqueira  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.