Skip to content

EbubeUd/node-js-boilerplate

Repository files navigation

Node Js Boiler Plate

With database config and authentication using passport.js

Table of Contents (Optional)


Example (Optional)


Installation

  • Ensure you have node and npm installed on your machine. To install, please refer to this link.

Clone

  • Clone this repo to your local machine using
$ git clone https://github.com/EbubeUd/node-js-boilerplate.git

Setup

Dependencies

  • In the project root folder, install all the npm dependencies.
$ npm install

SSL

  • To enable the app to run locally, you need to generate an SSL certificate and a key. You can do this by using mkcert. It is a simple tool for making locally-trusted development certificates. Install mkcert from powershell
$ mkcert -install
  • After installing mkcert, create a certificate for the localhost, using the mkcert command
$ mkcert localhost 127.0.0.1 
  • This will create a certificate for the localhost. Save the generated files in the project's root folder as "cert.pem" for the certificate and "key.pem" for the key

Database

  • You can set up the database using Xampp and PhpmyAdmin. Create a Database named "db_name". The tables will be created when the app is started. The database credentials are pre-configured in config/development.json
  "database": {
    "username": "root",
    "password": null,
    "database": "db_name",
    "host": "127.0.0.1",
    "dialect": "mysql",
    "operatorsAliases": false
  },
  // ...
};

Usage

  • Run the app using npm.
$ npm run server


License

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published