Skip to content

waseem-pp/task-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœ… TaskFlow API

A simple Node.js + Express API that lets users create and view tasks.

๐Ÿš€ Run Locally

  1. Clone repo
  2. Run npm install
  3. Start server: npm start
  4. Open http://localhost:3000/api/tasks

๐ŸŒ Live API

https://task-api-yourname.onrender.com/api/tasks

๐Ÿง  Endpoints

Method Endpoint Description
GET /api/tasks Get all tasks
POST /api/tasks Add a new task

๐Ÿ› ๏ธ Tech Used

  • Node.js
  • Express.js
  • CORS

โš ๏ธ Challenges Faced

  1. Faced CORS issues while connecting frontend โ†’ fixed using cors() package.
  2. Server didnโ€™t run on Render due to hardcoded port โ†’ changed to process.env.PORT.
  3. Git push errors due to wrong remote โ†’ fixed by resetting remote and using access token.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published