The CRUD application is a web-based platform that allows users to perform basic CRUD operations (Create, Read, Update, Delete) on posts. The application includes user authentication with login and signup functionality to ensure secure access.
Users can create an account by providing their username, email, and password. The signup process includes validation checks to ensure that the entered data meets the required criteria. Once registered, users can log in using their credentials to access the application.
Once logged in, users have the ability to create new posts by providing a title, content, and any additional information. The created posts are saved and associated with the user's account.
Users can view all the posts available in the application and read their content. They can also edit and update their existing posts, allowing them to modify the post's title, content, or any other relevant information. The changes made to the posts are saved and reflected in the application.
Additionally, users have the option to delete their own posts if they no longer wish to keep them. Upon deletion, the post is permanently removed from the application.
The CRUD application provides a user-friendly interface and a seamless experience for managing posts, allowing users to create, read, update, and delete their own posts efficiently.
1.POST /api/register
- User registration endpoint
2.POST /api/login
- User login endpoint
3.POST /api/posts
- Create a new post
4.GET /api/posts
- Retrieve all posts
5.PATCH /api/posts/:id
- Update a post
6.DELETE /api/posts/:id
- Delete a post
How to start locally
1.Clone the repository: git clone https://github.com/soniadiwedi/crud_app.git
2.Install the dependencies: npm install
3.Start the frontend development server: npm run start
4.Start the backend development server: npm run server