You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,6 +18,7 @@ This project shows the power of Next.js and serves as a practical demonstration
30
18
-[**5. Run the Development Server**](#5-run-the-development-server)
31
19
-[**6. Build for Production**](#6-build-for-production)
32
20
-[🌐 **Using the App**](#-using-the-app)
21
+
-[📝 **Swagger API Documentation**](#-swagger-api-documentation)
33
22
-[💡 **Notes**](#-notes)
34
23
-[🧪 **Testing**](#-testing)
35
24
-[**Running Tests**](#running-tests)
@@ -44,6 +33,8 @@ This project shows the power of Next.js and serves as a practical demonstration
44
33
- Dark and Light mode
45
34
- User-specific to-do lists with different categories
46
35
- CRUD operations for to-do items
36
+
- MongoDB database for data storage
37
+
- WebSockets for real-time updates to To-Do items
47
38
- Responsive design
48
39
- Add, edit, delete, and complete tasks
49
40
- Persistent storage using SQLite and in-memory storage
@@ -57,6 +48,8 @@ This project shows the power of Next.js and serves as a practical demonstration
57
48
58
49
The application is deployed live on **Vercel**. You can access it at [https://todo-app-nextjs-stack.vercel.app/](https://todo-app-nextjs-stack.vercel.app/landing).
59
50
51
+
The app features a landing page, authentication (login, register, and forgot password), a to-do list, and a Swagger API documentation page, as well as real-time to-do updates using WebSockets.
52
+
60
53
## 🖼️ **UI Preview**
61
54
62
55
### **Landing Page**
@@ -115,6 +108,20 @@ The application is deployed live on **Vercel**. You can access it at [https://to
115
108
<imgsrc="images/home-dark.png"alt="Homepage in Dark Mode"width="100%"style="border-radius: 10px"/>
|`POST`|`/api/auth/login`| Log in with username and password |
213
+
|`POST`|`/api/auth/register`| Register a new user |
214
+
|`GET`|`/api/todos`| Fetch all todos for a user |
215
+
|`POST`|`/api/todos`| Create a new to-do item |
216
+
|`PUT`|`/api/todos`| Update a to-do item |
217
+
|`DELETE`|`/api/todos`| Delete a to-do item |
218
+
|`PATCH`|`/api/todos`| Mark a to-do item as completed |
219
+
|`POST`|`/api/auth/reset-password`| Reset user password |
220
+
|`POST`|`/api/auth/verify-email`| Verify user email |
176
221
177
222
## 🛠️ **Getting Started**
178
223
@@ -264,6 +309,18 @@ The production build will be served at `http://localhost:3000`.
264
309
265
310
3.**Manage To-Dos**: Access the main to-do list page (`/`) where you can add, edit, and delete to-dos, as well as toggle dark mode.
266
311
312
+
Alternatively, you can directly access the deployed application at [https://todo-app-nextjs-stack.vercel.app/](https://todo-app-nextjs-stack.vercel.app/).
313
+
314
+
## 📝 **Swagger API Documentation**
315
+
316
+
The application includes a Swagger API documentation page that lists all the available API endpoints and their descriptions. You can access the Swagger documentation at `/swagger`.
317
+
318
+
Here is what it looks like:
319
+
320
+
<palign="center">
321
+
<imgsrc="images/swagger.png"alt="Swagger API Documentation"width="100%"style="border-radius: 10px"/>
322
+
</p>
323
+
267
324
## 💡 **Notes**
268
325
269
326
- This application uses local storage to manage user data and to-do items. For a more robust application, consider integrating a real database (e.g., MongoDB, PostgreSQL).
0 commit comments