Brief description of my NodeJS application.
Follow these instructions to set up and run the application.
- NodeJS installed
- MongoDB Atlas account
- AWS EC2 instance
- AWS ElastiCache Redis cluster
- (Add any other dependencies or services needed)
-
Clone the repository:
git clone https://github.com/IcyHarka/redditus.git
-
Navigate to the project directory:
cd redditus
-
Install dependencies:
npm install
-
Create a .env file based on the provided .env.example file.
cp .env.example .env
-
Start the application:
npm run start
- Endpoint:
POST /auth/register
- Payload:
username
password
password_repeat
email
- Endpoint:
POST /auth/login
- Payload:
username
password
- Endpoint:
GET /users
- Endpoint:
GET /users/:id
- Endpoint:
PUT /users/:id
- Payload:
username
- Endpoint:
DEL /users/:id
- Endpoint:
POST /products
- Payload:
name
description
price
category
- Endpoint:
GET /products
- Endpoint:
GET /products/:id
- Endpoint:
PUT /products/:id
- Payload:
name
description
price
category
- Endpoint:
DEL /products/:id