A brief description of what the API does and its purpose.
- Feature 1: Register and Login user
- Feature 2: Create and manage products
- Clone the repository.
- Install the dependencies using
npm install.
- Configure the API by updating the configuration file.
- Start the API using
npm start. - Access the API endpoints using the provided base URL.
- for testing use cases npm run test
Detailed documentation of the API endpoints, request/response formats, and any additional information. Link to the postman Join My Postman team
- MongoDB
- Node js (typescript)
- Docker
This project is licensed under the MIT License.
For any questions or inquiries, please contact [ochecodes@gmail.com].
- Docker installed on your machine.
- Nodejs
- Postman
-
Open a terminal and navigate to the root directory of the project.
-
Build the Docker image using the following command:
docker build -t mainstack-assessment .
-
Start the Docker container using the following command:
docker run -p 5000:5000 mainstack-assessment
This will start the API on port 5000 inside the Docker container.
-
Access the API endpoints using the following base URL:
http://localhost:5000
To stop the Docker container, use the following command: docker stop <container_id>