Git Product home page Git Product logo

covalent-backend's Introduction

๐ŸŒ™ backend-with-crud-and-auth

backend-with-crud-and-auth is a NodeJS & MongoDB based boilerplate that utilizes Express, bcrypt and other libraries for setting up a server and authentication.

You can use it for:

  • Quickly prototyping stuff in Hackathons.
  • Avoiding messy setups and only writing what's important.

Get Started

Setup Database & Token

Register on MongoDB Atlas or your DB provider of choice and save the connection URL. Check .env.sample and create another file .env with the same contents. Replace Your_DatabasE_urI in the new .env with your saved connection URL. Also, don't forget to replace the SECRET with a long and hard-to-remember string.

Installing Dependencies

Run npm install or yarn depending on your case.

Setting RateLimiting Thresholds

Change the RATE_LIMIT_TIME and RATE_LIMIT_THRESHOLD variables to your desired configuration or use the default one given below.

RATE_LIMIT_TIME = 900000
RATE_LIMIT_THRESHOLD = 100

Running locally and Hosting

This can be pretty much hosted anywhere and on any platform that supports NodeJS. I usually like to use Heroku for hosting my backends. You can use any popular host like AWS, Digital Ocean, etc. with the required setups. To run it locally though, just run npm run in the command line and you should be set. The application would be available on port 8300 locally.

Credits

Thanks to RecoilJS - Facebook, TailwindCSS, and all other open-source libraries that I may have used while building this.

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.