Giter Club home page Giter Club logo

react-todo's Introduction

Todo App

This is a full-featured Todo application built with the PERN stack (PostgreSQL, Express.js, React, Node.js). The application allows users to manage their daily tasks efficiently with user authentication, CRUD operations on todos, and more.

Features

  • User Authentication

    • Secure user authentication using JWT tokens.
    • Login and registration functionality.
    • Password encryption for security.
  • User Management

    • Creation and deletion of user accounts.
    • Profile management for users.
  • Todo Management

    • Create, read, update, and delete todos.
  • Responsive Design

    • Fully responsive UI, works on both desktop and mobile devices.

Tech Stack

  • Backend
    • Node.js
    • Express.js
    • PostgreSQL for the database
    • JWT for authentication

Getting Started

Prerequisites

  • Node.js and npm installed
  • PostgreSQL installed and running

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/pern-todo-app.git
  2. Navigate to the project directory:

    cd pern-todo-app
  3. Install dependencies for both the client and server:

    cd client
    npm install
    cd ../server
    npm install
  4. Set up the PostgreSQL database:

    • Create a new database named todoapp.
    • Create a .env file in the server directory and add your database credentials:

Running the Application

  1. Start the backend server:

    cd server
    npm start
  2. Start the frontend development server:

    cd client
    npm start

API Endpoints

Authentication

  • POST /api/signup - Register a new user
  • POST /api/login - Login a user

Users

  • GET /api/users/:id - Get user details
  • DELETE /api/users/:id - Delete a user account

Todos

  • GET /api/todos - Get all todos
  • POST /api/todos - Create a new todo
  • PUT /api/todos/:id - Update a todo
  • DELETE /api/todos/:id - Delete a todo

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes. Ensure your code adheres to the project's coding standards and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or feedback, please contact me at [email protected].


Happy coding!

react-todo's People

Contributors

steninkgeorge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.