From 53d27050a81fcc6e731cbb6515a5c01e72d07e5a Mon Sep 17 00:00:00 2001 From: Jose Herrera Date: Sat, 3 Feb 2024 23:00:34 -0300 Subject: [PATCH] feat: new readme * feat: new readme * fix: package manager --- README.md | 121 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 79 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 684a6b9..49dbce6 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,111 @@ -# Nexp-cli [![NPM version][npm-image]][npm-url] +

+ NExp-CLI +

-> This CLI is made to be able to quickly create the NExp(https://github.com/DigiChanges/node-experience) boilerplate with all the content you want it to have. -> -> It allows you to choose between Mongoose, TypeORM and MikroORM when it comes to database persistence. In addition, you can also choose between Koa and Express for the HTTP library. -> -> This tool allows you to use NExp without the need to modify the code. +_This CLI is made to be able to quickly create the [NExp](https://github.com/DigiChanges/node-experience) boilerplate with all the content you want it to have. +It allows you to choose between Mongoose and MikroORM when it comes to database persistence. +This tool allows you to use NExp without the need to modify the code._ -## Installation +

+ + continuous integration + + + contributors + + + license + + + license + +
+

-First, install nexp-cli using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)). +# Pre-requisites + +Before you begin, ensure that you have the following installed on your machine: + +Node.js: Make sure you have Node.js installed. You can download it from [Official Web](nodejs.org). + +NPM (Node Package Manager): npm comes bundled with Node.js. + +Docker : [Official Web](https://www.docker.com/) + +Docker Compose : [Compose V2](https://docs.docker.com/compose/install/) + +PNPM : Make sure you have PNPM installed. [Official Web](https://pnpm.io/es/) + +# Installation + +First, install nexp-cli using [npm](https://www.npmjs.com/) ```bash npm install -g nexp-cli ``` -Then generate your new project: -```bash -nexp-cli create -``` +## Options + +| Options | | +|--- | --- | +| create | initiate project creation | -## Step by Step -#### First of all install nexp cli package globally. -![1.png](images/1.png) +## Available ORM -#### Currently, there is a `create` command call, in the future more commands will be added. +NExp-cli provides support for two Object-Relational Mapping (ORM) frameworks: -![2.png](images/2.png) +| ORM | Database | +| --- | --- | +| Mongoose | MongoDB | +| MykroORM | Postgres | -#### Write the name of the project. -![3.png](images/3.png) -#### Choose the ORM. +## Usage -![4.png](images/4.png) -#### Choose the HTTP library. +## Creating a New Project -![5.png](images/5.png) +Use the following command to initiate project creation. -#### And wait for each action to complete. +```bash +nexp-cli create +``` + +After running the above command, follow these steps: + + +- Write the name of the project. +- Choose the ORM. +- And wait for each action to complete. -![6.png](images/6.png) +# Launching NExp :rocket: -#### Copy .env.dev to .env and install dependencies with yarn or npm. +## Environment file + +Copy `.env.dev` to `.env` + +## Install dependencies + +To install dependencies, use `pnpm`. + +```bash +pnpm install +``` -![7.png](images/7.png) -#### Execute `make dev` command or `STAGE=dev docker-compose up --build -d` to create docker containers. +## Starting containers with Docker -* Node -* DB -* Redis -* Mail -* Minio +To run your application using Docker, follow these steps to start the containers: -![8.png](images/8.png) +- Execute `make dev` command or `STAGE=dev docker-compose up --build -d` -#### And it's ready to code. -![9.png](images/9.png) +## NEXT -## Next -* Choose more HTTP libs -* Possibility to choose between database drivers such as postgres, mysql etc. -* Creation of entire domains +- Creation of entire domains ## Docs @@ -80,5 +119,3 @@ nexp-cli create MIT © [Nathan Russo]() -[npm-image]: https://badge.fury.io/js/generator-nexp-cli.svg -[npm-url]: https://npmjs.org/package/generator-nexp-cli