setupbackend
v1.0.3
Published
A package to setup nodejs backend within some seconds.
Downloads
10
Maintainers
Readme
setupbackend
setupbackend is a Node.js package designed to automate the tedious process of setting up a backend project. With just a few simple commands, you can create a production-grade folder structure, essential files, and install necessary packages, saving you valuable time and effort.
Installation
To use setupbackend, follow these simple steps:
- Create a
setup.js
file in your project directory. - Run
npm init -y
to initialize a new Node.js project. - Install setupbackend by running
npm i setupbackend
. - Add the following code to your
setup.js
file:
const setupbackend = require('setupbackend');
setupbackend();
- Run
setup.js
file:
node setup.js
Features
- Creates essential files: index.js, app.js, .env, and .gitignore
- Sets up an Express boilerplate inside index.js for quick server setup
- Generates a .gitignore file tailored for Node.js projects
- Establishes a production-grade folder structure for scalability and organization
- Installs over 10 essential packages including:
- Express
- Mongoose
- Cors
- Dotenv
- JWT
- Bcrypt
- Multer
- Cookie-parser
- Cloudinary
- Prettier
- Nodemon
- Automatically deletes setup file to keep your project clean
- Completion of setup within 15 to 30 seconds