Books/Claude Code/First Task

    First Task

    Create a new folder for the first task or project. go to that directory and provide the prompt. Instructions are provided below.

    mkdir todo-project

    cd todo-project

    claude

    Use the below mentioned prompt to create the first to-do project APIs

    <!-- Create a simple todo list API using Express.js. It should have endpoints to create, read, update, and delete todos. Each todo should have an id, title, description, and completed status. Include proper error handling and use in-memory storage -->

    Claude will do whatever is need to accomplish for that task. It will enter into thinking and plan mode as needed and switch to implementation mode once thinking and plan mode is complete.

    For this task, it creates

    • Creating package.json
    • Setting up the Express server
    • Writing the routes
    • Adding error handling middleware
    • Creating a README with API documentation

    Once you create the project code, to run it, you need to install the packages and run. use the below mentioned commands

    npm install

    node server.js

    Video Tutorial


    🌐 www.genai-mentor.ai