This repository features a simple task management application built with NodeJS and React. It's a basic project that showcases my ability to work with these technologies and is part of a home assignment.
- node-v19.5.0
- Docker version 20.10.21
- docker-compose version 1.29.2
To run the Backend NodeJS:
- create
.envfile under main directory - execute these commands:
cd app
npm config set legacy-peer-deps true
npm install
docker-compose -f dev/docker/docker-compose.debug.yml up -d
npx prisma migrate dev --name init
npm startFrontend:
cd app/client
npm install
npm start curl --location --request GET '127.0.0.1:3000/tasks' curl --location --request POST '127.0.0.1:3000/tasks' \
--header 'Content-Type: application/json' \
--data-raw '{
"task": {
"title": "Title",
"description": "Description"
},
"attach": {
"ids": []
}
}'| Parameter | Type | Description |
|---|---|---|
task |
Dict |
Required. task details, title and description |
attach |
Dict |
Optional. tasks to attach, ids |
curl --location --request DELETE '127.0.0.1:3000/tasks/<TASK_ID>'| Parameter | Type | Description |
|---|---|---|
TASK_ID |
number |
Required task id |
curl --location --request GET '127.0.0.1:3000/users'