shajin-sha / express-api-template

Node.js Express rest API templet with Mongodb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node.js Express API template.

With following default configuration ✅ -:

  • Mongodb - mongoose.

  • Test endpoint - with vs code Rest clint.

  • Nodemon - reload server on code change.

  • Public DIR for storting static files (API-Storage).

  • Error - auto configured error massages in json.

Usage

$desktop@home> git clone https://github.com/shajin-sha/express-api-template.git
................
$desktop@home> cd backend
$desktop@home\backend> npm install
.............
$desktop@home\backend> npm start
> nodemon ./bin/www

[nodemon] 2.0.16
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node ./bin/www`
Connected to database.

Good wishes on your new API ❤.

Done by Shajin, on May 2022.

updated on May 2022 👍.

About

Node.js Express rest API templet with Mongodb.


Languages

Language:JavaScript 93.6%Language:Handlebars 4.6%Language:CSS 1.7%