This repository contains a shell script to quickly set up project environments for various JavaScript frameworks and tools. The script allows you to configure your environment with minimal effort by automating dependency installation, configuration setup, and more.
- Option 1: Set up a Node.js project with Express.js and Nodemon.
- Option 2: Set up a Node.js project with Express.js, TypeScript, and a
tsconfig.json
pre-configured for modern JavaScript and TypeScript development.
The script prompts the user to choose from the following options:
-
Node.js with Express.js:
- Initializes the project with
npm init
. - Installs
express
andnodemon
as dependencies. - Configures the
start
script inpackage.json
. - Creates an
index.js
file as the entry point.
- Initializes the project with
-
Node.js with Express.js and TypeScript:
- Initializes the project with
npm init
. - Installs
express
andtypescript
as dependencies. - Configures a
tsconfig.json
for TypeScript development. - Creates an
index.js
and a TypeScript-compatible environment.
- Initializes the project with
- Node.js and
npm
installed on your system. - Zsh shell (or adapt the script for other shells like Bash).
- Clone this repository or copy the script.
- Make the script executable:
chmod +x setup.sh
- Run the script:
./setup.sh
- Follow the prompts to select your desired environment.
Option 1: Node.js with Express.js
Create your environment
(1) Node JS With Express JS
(2) Node JS With Express JS and Typescript
(3) Next JS With Shadcn UI
Enter your choice: 1
Installing Dependencies
+ express
+ nodemon
Dependencies Installed
Project environment setup complete
Option 2: Node.js with Express.js and TypeScript
Create your environment
(1) Node JS With Express JS
(2) Node JS With Express JS and Typescript
(3) Next JS With Shadcn UI
Enter your choice: 2
Installing Dependencies
+ express
+ typescript
Dependencies Installed
Project environment setup complete
Feel free to contribute to this script by submitting a pull request! Suggestions and enhancements are welcome.