Skylar-Lorena / tasklist-2.0

Simple task list to demonstrate CRUD actions, props, components and state in React.
https://tasklist-2-0.vercel.app/
0 stars 2 forks source link

Setup JSON Server #11

Open festus-sulumeti opened 2 months ago

festus-sulumeti commented 2 months ago

This PR addresses the setup of JSON Server to serve as a mock backend for tasks, users, and notifications. The following tasks have been completed:

  1. Installed JSON Server:

    • Added JSON Server as a development dependency to the project.
    • Ensured that the latest stable version is installed.
  2. Created db.json file:

    • Created a db.json file in the root directory of the project.
    • Defined the initial data structure for tasks, users, and notifications in JSON format, including necessary properties for each entity.
    
    {
     "tasks": [
       {
         "id": 1,
         "title": "Sample Task",
         "description": "This is a sample task.",
         "completed": false
       }
     ],
     "users": [
       {
         "id": 1,
         "username": "user1",
         "email": "user1@example.com"
       }
     ],
     "notifications": [
       {
         "id": 1,
         "message": "Welcome to the Task Management App!",
         "read": false
       }
     ]
    }

Related Issue

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tasklist-2-0-1gil ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 4:18pm