Welcome to the Empleados API documentation.
Tech Stack to use: Nest.js + TypeScript + MongoDB + Mongoose + Jest + supertest
Before you begin, ensure you have the following installed:
- Docker
- Docker Compose
- Node.js
- TypeScript
-
Clone the Repository
Clone the Empelados API repository:
git clone https://github.com/m-pizarro/empleados-api.git. -
Environment Setup
Ensure you have a
.envfile at the root of the project with the necessary environment variables. -
Docker Compose
It's highly recommended to use Docker Compose for running the application. This will ensure a consistent environment and easy setup.
-
Running with Docker Compose
Start all services with the following command:
bashCopy code
docker-compose up -dThis will build and start all the necessary containers in detached mode.
-
Accessing the Application
- The API will be available at
http://localhost:3000. - MongoDB can be accessed on
mongodb://mongodb:27017.
- The API will be available at
While Docker is recommended, you can run the application directly on your machine.
-
Install Node.js dependencies:
yarn install -
Start the application:
yarn devEnsure that you have the required databases and services running locally.
Environment Setup
Ensure you have a .env file at the root of the project with the necessary environment variables.
# development
$ yarn run dev
# unit tests
$ yarn run test
- Author - Mariano Pizarro
- GitHub - http://github.com/m-pizarro
Nest is MIT licensed.