GithubHelp home page GithubHelp logo

opauwlo / node-js-boilerplate-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 921 KB

a template for create apis with nodejs

License: MIT License

JavaScript 99.73% Shell 0.27%
api js node nodejs template mongodb-atlas jwt

node-js-boilerplate-api's Introduction

a template for Node.js api's

GitHub repo size GitHub language count GitHub forks License: MIT

gif show how this work

this is a simple template for create apis with nodejs using mongo and JwT auth

📦template
 ┣ 📂__tests__
 ┃ ┣ 📂integration
 ┃ ┃ ┗ 📜main.spec.js
 ┃ ┗ 📂unit
 ┣ 📂src
 ┃ ┣ 📂configs
 ┃ ┃ ┣ 📜database.config.js
 ┃ ┃ ┗ 📜server.config.js
 ┃ ┣ 📂controllers
 ┃ ┃ ┣ 📜delete.controller.js
 ┃ ┃ ┣ 📜get.controller.js
 ┃ ┃ ┣ 📜post.controller.js
 ┃ ┃ ┗ 📜put.controller.js
 ┃ ┣ 📂middlewares
 ┃ ┃ ┗ 📜verifyJwtToken.js
 ┃ ┣ 📂models
 ┃ ┃ ┗ 📜exemple.js
 ┃ ┣ 📂routes
 ┃ ┃ ┗ 📜routes.js
 ┃ ┣ 📂utils
 ┃ ┃ ┗ 📜verifyIsAdmin.js
 ┃ ┗ 📜main.js
 ┣ 📜.editorconfig
 ┣ 📜.eslintrc.json
 ┣ 📜.gitignore
 ┣ 📜ex.env
 ┣ 📜package.json
 ┗ 📜yarn.lock

Adjustments and improvements

The project is still under development and future updates will focus on the following tasks:

  • Add Restfull Crud template
  • [] Add a login system template
  • [] Add a auth JWT template

💻 Prerequisites

Before starting, make sure you have met the following requirements:

  • You have installed the latest version of Node.JS.

    for install node.js go to Node.js Site and follow the instructions for your SO.

  • You have installed the classic stable: version of Yarn.

    for install Yarn go to Yarn Classic Site and follow the instructions for your SO.

  • You have installed GIT.

    for install GIT go to GIT Site and follow the instructions for your SO.

  • You have read this readme.md.

🚀 Installing (cloning) this template

To clone, follow these steps:

Linux, macOS and windows:

git clone https://github.com/opauwlo/node-js-boilerplate-api.git <your project name>
cd <your project name>
yarn i

🚀 also you can use sipas, for installing s'ipas to use this template:

Linux, macOS and windows:

npm i -g sipas

☕ Using with s'ipas

To use s'ipas, follow these steps after install:

$ sipas

cd  <your project name>
yarn i

🧪 Tests

We are using jest to perform the tests, to test the tests (funny) just run yarn test inside your project

📫 Contributing to s'ipa

Para contribuir com s'ipa, siga estas etapas:

  1. Fork this repository.
  2. Create a branch: git checkout -b <name_branch>.
  3. Make your changes and confirm then: git commit -m '<message_commit>'
  4. send to original branch: git push origin sipa / <local>
  5. Create the pull request.

Alternatively, consult the GitHub documentation how to create a pull request.

🤝 Contributors

We thank the following people who contributed to this project:

pauwlo's profile picture on GitHub
opauwlo

😄 Be one of the contributors

node-js-boilerplate-api's People

Contributors

dependabot[bot] avatar opauwlo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.