- Clone your repository:
git clone https://github.com/tawfeeqm/demclp.git cd demclp - Ensure you have Node, npm, and Docker installed.
- Copy
.env.sampleto.env. - Start the database using:
docker-compose up -d. - Run
npm i - Initialize the schema with:
npm run init-schema.
Execute npm run dev.
Method: POST
Endpoint: /users/signup
Payload:
{
"email": "lynn@email.com",
"username": "lynn",
"password": "hello123"
}Method: POST
Endpoint: /users/login
Payload:
{
"email": "lynn@email.com",
"password": "hello123"
}Method: POST
Endpoint: /assets/:userId
Payload:
{
"title": "my pic",
"url": "https://pic.website/1",
"description": "just my pic",
"type": "picture"
}Method: GET
Endpoint: /assets/:assetId
Response:
{
"response": {
"type": "picture",
"title": "my pic",
"url": "https://tawfeeq.live",
"description": "just my pic"
}
}