This project was generated with node version v16.16.0 and npm version 8.11.0.
- Clone the repository -->> git clone https://github.com/AndyPelaez/ContactsApi.git
- Ensure you installed mongoDB server(link)
- cd [path]/ContactsApi
- npm i
- Before running the api, ensure the connection string is rigth in the env file(.env.development)
- Run “npm run migrate:dev:up” to execute all migrations
- RUN “npm run start:dev” to run the api server
- Before running the api, ensure the connection string is rigth in the env file(.env.testing)
- RUN “npm run test” to run the api tests
- Ensure you have installed docker on your machine(link)
- Ensure you do not have any service running on ports 4200 and 3001.
- Clone the Angular app repository and store it in the same project's folder.
- Run automatic build “docker-compose up --build -d”
- Run “npm run migrate:up” to add initial data.
- Check services are running correctly in http://localhost:4200,