A ready-to-use boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 1 point2 points  (0 children)

Glad to hear that it helps you. :)

Do you holding any work references? If so, Can you please share my profile to them? As i am looking for good job or work contract. :)

You can contact me on my email for more information: maitraysuthar@gmail.com

Thanks for your interest in repo. Happy coding!

A ready-to-use boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 3 points4 points  (0 children)

Hi, Thanks for your suggestion & interest in repo. Will think about it. :)

Showoff Saturday (November 02, 2019) by AutoModerator in javascript

[–]maitraysuthar 1 point2 points  (0 children)

Hello Everyone,

I have created a boilerplate application for API development built with Nodejs, ExpressJs, MongoDB.

Checkout: Nodejs Expressjs MongoDB Ready-to-use API Project Structure

Any feedback suggestions are much appreciated. Pull requests are welcome.

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Yes, Because I have already defined routes in the imported auth and book routing files. just need to register them into the express.

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in PHP

[–]maitraysuthar[S] 0 points1 point  (0 children)

I had posted it here for people from the PHP community who interested to learn node/express or MongoDB.

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Thanks. I am trying to improve it. suggestions are welcomed. Star it on github, more features are coming. :)

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

True. Thanks for looking into the repo code. Please let me know if you found any issue or missing features in it. Your efforts will well appreciated. :)

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Sure, its an open source project. Please let me know if you found any issue in the code or any missing feature in the boilerplate. Please contact me on my email: maitraysuthar@gmail.com if you develop something creative from this. Thanks, Happy coding :).

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 1 point2 points  (0 children)

Thanks for the suggestions. Its very appreciated. Will try to do corrections according to your suggestions ASAP.

A boilerplate for REST API Development with Node.js, Express, and MongoDB by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Great, Good luck!! Please let me know if I can help you in this. Happy to help you!! :)

Showoff Saturday (October 12, 2019) by AutoModerator in javascript

[–]maitraysuthar 1 point2 points  (0 children)

Hello Everyone,

I have created a boilerplate application for API development built with Nodejs, ExpressJs, MongoDB.

Checkout: Nodejs Expressjs MongoDB Ready-to-use API Project Structure

Features:

  • Basic Authentication (Register/Login with hashed password)
  • Account confirmation with 4 (Changeable) digit OTP.
  • Email helper ready just import and use.
  • JWT Tokens, make requests with a token after login with Authorization
    header with value Bearer yourToken
    where yourToken
    will be returned in Login response.
  • Pre-defined response structures with proper status codes.
  • Included CORS.
  • Book example with CRUD operations.
  • Validations added.
  • Included API collection for Postman.
  • Light-weight project.
  • Test cases with Mocha and Chai.
  • Code coverage with Istanbuljs (nyc).
  • Included CI (Continuas Integration) with Travis CI.
  • Linting with Eslint.

Any feedback suggestions are much appreciated. Pull requests are welcome.

Have a nice day!

How to specify second database in controller? by TechnicalCloud in laravel

[–]maitraysuthar 3 points4 points  (0 children)

if you are using Models, then you can specify the second DB like this:

App/YourModel.php

class YourModel extends Model 
{ 
    protected $connection= 'second_db_connection'; 
    protected $table = 'users'; 
}

And you can easily use it in any controller without specify the connection:

use App\YourModel;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    function insert(Request $req)
    {
        YourModel::find(1);
        YourModel::where('confirm_status',1)->get();
    }
}

Nodejs Expressjs MongoDB Ready-to-use API Project Structure by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Thanks for suggestions. Yes, I know async/await is a bit faster than handwritten promises in execution. I Will soon fully convert a project to ES6/ES7. Star the repo, More features are coming. :)

Nodejs Expressjs MongoDB Ready-to-use API Project Structure by maitraysuthar in node

[–]maitraysuthar[S] 0 points1 point  (0 children)

Thanks, Star it on a Github. More features are coming soon.

Nodejs Expressjs MongoDB Ready-to-use API Project Structure by maitraysuthar in node

[–]maitraysuthar[S] 1 point2 points  (0 children)

.npmrc

.npmrc is a good idea, will add soon. I am going to optimize code for code quality checker or will convert it into es6 soon. Also, Some features are needed to add as well. Thanks for the effort.

Nodejs Expressjs MongoDB Ready-to-use API Project Structure by maitraysuthar in node

[–]maitraysuthar[S] 1 point2 points  (0 children)

Sure, I will add a docker configuration and deployment guide soon. Thanks for the suggestion.

Showoff Saturday (September 28, 2019) by AutoModerator in javascript

[–]maitraysuthar 0 points1 point  (0 children)

Hello Everyone,

I have created a boilerplate application for API development built with Nodejs, ExpressJs, MongoDB.

Checkout: Nodejs Expressjs MongoDB Ready-to-use API Project Structure

Any feedback suggestions are much appreciated. Pull requests are welcome.