An open API service indexing awesome lists of open source software.

https://github.com/ayyesu/todoapp

MERN stack TodoApp project
https://github.com/ayyesu/todoapp

authentication mongodb nodejs react redux tailwindcss

Last synced: about 2 months ago
JSON representation

MERN stack TodoApp project

Awesome Lists containing this project

README

        

# TodoApp with Authentication

This is a full-stack web application for managing todos. It includes user authentication using JSON Web Tokens (JWT). The front end is built with React, the backend with Express, and data is stored in a MongoDB database.

## Features

- User authentication using JWT.
- Create, Read, Update, and Delete todos.
- User-specific todos.
- Responsive UI for seamless use on various devices.

## Technologies Used

- **Frontend:**
- React
- Axios (for API requests)
- React Router (for routing)

- **Backend:**
- Express.js
- JSON Web Tokens (JWT) for authentication
- MongoDB with Mongoose (as the database)

## Getting Started

These instructions will help you set up and run the project on your local machine for development and testing purposes.

### Installation

1. **Clone the repository:**

```bash
git clone https://github.com/your-username/TodoApp.git
cd TodoApp

# Install backend dependencies
```bash
cd backend
npm install
```

# Install frontend dependencies
```bash
cd ../frontend
npm install
```

# Create a .env file in the backend directory and set the following variables:

```bash
MONGODB_URI=YOUR_MONGODB_URI
JWT_SECRET=YOUR_JWT_SECRET
```

# Start the Server:
In the backend directory:
`npm start`

# Start the Frontend
In the frontend directory:
`npm start`

Visit `http://localhost:3000` to access the application.