This script automates the setup process for a Node.js project, creating a structured folder layout and installing essential dependencies.
-
Clone or download this repository to your local machine. Open a terminal window and navigate to the directory where you saved the script.
-
Run the script by entering the following command:
npm start
- Follow the prompts to enter the desired folder name for your project. Folder Structure The script will create the following folders within your project directory:
- constant.js: Placeholder file for constants.
- .prettierignore: Prettier configuration file ignore list.
- .prettierrc: Prettier configuration file.
- .env: Environment variables file.
- sample.env: Sample environment variables file for reference.
- README.md: Project README file.
- index.js: Main entry point for the application.
- app.js: Express application setup file.
- bcrypt, cookie-parser, cors, dotenv, express, express-rate-limit, express-validator, helmet, jsonwebtoken, mongoose, morgan, winston,
✨ Upon completing these steps, you will have a meticulously structured folder, named as per your command input, containing all the requisite sub-folders meticulously organized by the script.
Ensure that you have a stable internet connection during the script execution for dependency installation. Adjust the delay in the script (setTimeout) as needed based on your internet speed for package installation completion.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
If you encounter any issues with the application, contact [email protected] for assistance.