1.1.4 • Published 4 years ago

test_1_nodestarter v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Nodstarter

Javascript NPM

Nodstarter provides rapid rest APIs development, it offers preconfigured and secured routers using JWT, error middleware handler, MongoDB models, MongoDB connection and logger with APIs testing. This project aims to help writing the rest APIs backend quickly.

Technologies and libraries used:

  1. Node.js
  2. Express framework
  3. Mongoose ORM
  4. MongoDB
  5. Lodash
  6. Morgan middleware
  7. Body praser
  8. Method-override
  9. bcrypt
  10. express-jwt
  11. jsonwebtoken
  12. cors
  13. nodemon
  14. Testing libraries: Supertest, Chai and Mocha

Project structure

The project contains two folder server and test

server/
├── config
├── auth
├── api
|   ├── Users
|   ├── Posts
|   ├── Categories
├── middleware
├── util
└── package.json

test/
├── apiTest.js
└── dbTester.js

Nodstarter uses the environment variables

Nodstarter starts searching first for the following environment variables if found them will use them, if not will use the default. The default for NODE_ENV is development, NODE_PORT is 3000 and JWT 'Gambell' You can choose NODE_ENV from one of the following options (development, production, testing)

  1. NODE_ENV
  2. NODE_PORT
  3. JWT

NPM Install

Install with npm:

$ npm install nodstarter

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Project intent

Nodstarter project aims to be like Spring Initializr to minimize the configuration for developing Node.js apps.

Have new idea

This project welcomes new ideas, you can reach me at this email

Future plans

We need to make the libraries dynamic and the programmer can choose what libraries want and how many rest APIs, models, Database engine and back-bone tests for rest APIs.

License Summary

You can copy and paste the Apache 2.0 license summary from below.

Copyright 2020 by Nodstarter

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago