- ScreTask API For Task Management Related Stuff. Developers may utilise this API to support the backend of their apps by coding them in the tech stack of their choosing.
 
Database : MongoDB
Server : Node, Express , TypeScript
Frontend : Flutter App
To run this project, you will need to add the following environment variables to your .env file
PORT
MONGODB_URL
JWT_SECRET
CUSTOM_EMAIL
CUSTOM_PASS
Clone the project
  git clone https://github.com/Dev-Adnani/ScreTask-BackendGo to the project directory
  cd ScreTask-BackendInstall dependencies
  npm iStart the server
  npm run dev- Base Url
 - Authorization Key : "Test"
 
  POST /auth/send-email-verification| Parameter | Type | Description | 
|---|---|---|
useremail | 
string | 
Required. User's Email | 
  POST auth/signup| Parameter | Type | Description | 
|---|---|---|
useremail | 
string | 
Required. User's Email | 
userpassword | 
string | 
Required. User's Password | 
username | 
string | 
Required. User's Name | 
userphoto | 
string | 
Required. User's Profile URL | 
secretcode | 
string | 
Required. Secret Code Generated By Server | 
secretcodeinput | 
string | 
Required. Secret Code Enterted By User | 
  POST /auth/login| Parameter | Type | Description | 
|---|---|---|
useremail | 
string | 
Required. User's Email | 
userpassword | 
string | 
Required. User's Password | 
  GET /auth/verify| Parameter | Type | Description | 
|---|---|---|
tokenData | 
authorization | 
Required. JWT | 
  POST task/add| Parameter | Type | Description | 
|---|---|---|
user_id | 
string | 
Required. User's ID | 
task_title | 
string | 
Required. Task's Title | 
task_desc | 
string | 
Required. Task's Description | 
task_type | 
string | 
Required. Task's Types | 
task_date | 
string | 
Required. Task's Date | 
task_completed | 
boolean | 
Required. Task's Completed Status | 
  GET task/:userId| Parameter | Type | Description | 
|---|---|---|
userId | 
Parameter | 
Required. User's ID | 
  GET task/count/:userId| Parameter | Type | Description | 
|---|---|---|
userId | 
Parameter | 
Required. User's ID | 
  GET task/detail/:taskId| Parameter | Type | Description | 
|---|---|---|
task_id | 
Parameter | 
Required. Task ID | 
  POST task/taskType| Parameter | Type | Description | 
|---|---|---|
task_type | 
string | 
Required. Task Types | 
user_id | 
string | 
Required. User's ID | 
  PUT task/update| Parameter | Type | Description | 
|---|---|---|
task_id | 
Parameter | 
Required. Task ID | 
task_title | 
string | 
Required. Task's Title | 
task_desc | 
string | 
Required. Task's Description | 
task_type | 
string | 
Required. Task's Types | 
task_date | 
string | 
Required. Task's Date | 
task_completed | 
boolean | 
Required. Task's Completed Status | 
  DELETE task/delete/:taskId| Parameter | Type | Description | 
|---|---|---|
task_id | 
Parameter | 
Required. Task ID | 
If you have any feedback, please reach out to us at [email protected]