Loading repository data…
Loading repository data…
Synergy2Devs / repository
This script automatically installs Node, Express, TypeScript, ESLint, and Prettier. The idea behind this script is to execute all dependency installations and environment configurations with a single command, streamlining the process of starting projects from scratch.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This script installs Node, Express, TypeScript, ESLint, and Prettier automatically. The idea behind this script is to execute all dependency installations and environment configurations with a single command, streamlining project setup from scratch.
There are two ways to install netepScript:
To install netepScript using npm, run the following command in your terminal:
npm install -g netepscript
netepscript
Or without installing the library by running:
npx netepscript
To use this installation system, first create an empty folder where you will host your project. Download the zip file and unzip it inside that folder. Then, open the folder with your preferred text editor or access it from your operating system's terminal. After all dependencies are installed, you can remove the script file so that it is not included in the script.
On Windows 🪟
It's best to use a bash terminal, such as the one available within Visual Studio Code.
Open a new bash terminal and make sure you're in the folder where you extracted netepScript.
Next, make the script executable by typing in the console:
chmod +x netepScript.v0-9-01.sh
./netepScript.v0-9-01.sh
On Linux 🐧 or MacOS 🍎
You can access it from Visual Studio Code or directly from the Linux terminal in the folder where you extracted netepScript.
Similarly, make the script executable by typing in the console:
chmod +x netepScript.v0-9-01.sh
./netepScript.v0-9-01.sh
Scripts 📜
Several scripts have been configured in the package.json file in this project to facilitate development and production:
Project Structure 🏗️
.
├── src
│ ├── config
│ ├── controllers
│ ├── interfaces
│ ├── middlewares
│ ├── models
│ ├── routes
│ ├── servicese
│ ├── index.ts
│ └── server.ts
├── .eslintrc.json
├── .prettierrc
├── .nodemon.json
├── package.json
├── package-lock.json
├── tsconfig.json
├── .env
├── .gitignore
└── README.md
## Database Configuration 🗄️ During the execution of the script, you will be prompted to choose the database configuration. Here are the available options:
#PostgreSQL Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=your_database
DB_USER=your_username
DB_PASSWORD=your_password
# MongoDB Configuration
MONGO_URI=mongodb://localhost:27017/your_database
src/config/data-source.ts
import { DataSource } from "typeorm";
export const AppDataSource = new DataSource({
type: "postgres",
host: process.env.DB_HOST,
port: Number(process.env.DB_PORT),
username: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
synchronize: true,
logging: false,
entities: ["src/entity/**/*.ts"],
migrations: ["src/migration/**/*.ts"],
subscribers: ["src/subscriber/**/*.ts"],
});
AppDataSource.initialize()
.then(() => {
console.log("Data Source has been initialized!");
})
.catch((err) => {
console.error("Error during Data Source initialization:", err);
});
Below are the most important configurations for the project.
The tsconfig.json file contains TypeScript configuration. Here's an example of basic configuration:
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}
The .eslintrc.json file contains ESLint configuration. Here's an example of basic configuration:
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: "latest",
},
env: {
es6: true,
},
rules: {
"prettier/prettier": "error",
},
};
The .prettierrc file contains Prettier configuration. Here's an example of basic configuration:
{
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"tabWidth": 2,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf"
}
The nodemon.json file contains Nodemon configuration. Here's an example of basic configuration:
{
"watch": ["src"],
"ext": "ts,json",
"ignore": ["src/tests/*", "node_modules"],
"exec": "ts-node src/index.ts"
}
Contributions are welcome. If you have any suggestions or improvements, open an issue or pull request to discuss any changes you would like to make.
Our Mission
Experience and Collaboration
Our Commitment
We are ready to hear your ideas and explore how we can work together to take them to the next level. Contact us today and let's start building the future!
Synergy2Devs
Marcelo Robin
Jesus Garcia
Este script instala Node, Express, TypeScript, ESLint y Prettier automáticamente. La idea de este script es ejecutar todas las instalaciones de dependencias y configuraciones de entorno con un solo comando, agilizando el inicio de proyectos desde cero.
Hay dos formas de instalar netepScript:
Para instalar netepScript usando npm, ejecuta el siguiente comando en tu terminal:
npm install -g netepscript
netepscript
O sin instalar la librería ejecutando:
npx netepscript
Para utilizar este sistema de instalación, primero crea una carpeta vacía donde alojarás tu proyecto. Descarga el archivo comprimido y descomprímelo dentro de esa carpeta. A continuación, abre la carpeta con tu editor de texto preferido o accede a ella desde la terminal de tu sistema operativo. Después de instalar todas las dependencias, se puede eliminar el archivo del script para que no se incluya en el mismo.
En Windows 🪟
Lo ideal es utilizar una terminal de bash, como la que se encuentra disponible dentro de Visual Studio Code.
Accede a una nueva terminal de bash, y asegúrate de estar en la carpeta donde has descomprimido netepScript.
Luego vamos a convertir el script en ejecutable escribiendo en la consola:
chmod +x netepScript.v0-9-01.sh
./netepScript.v0-9-01.sh
En Linux 🐧 o MacOS 🍎
Puedes acceder desde Visual Studio Code o directamente desde la terminal de Linux en la carpeta donde has descomprimido netepScript.
Luego vamos a convertir el script en ejecutable escribiendo en la consola:
chmod +x netepScript.v0-9-01.sh