A simple nodejs and express app that allows users create an account (signup), signin and manage their posts.
- Users can create account
- They can signin
- An admin can make other admins (route not handled yet)
- Users can manage ( create, view, update and delete ) their posts
- Admins can delete any post
- Frontend embedded with the backend
- Built with Htmx and Bootstrap
The routes are basically divided into three segments - (auth, user and post)
Auth Routes
- Signin - /auth/signin
- Signup - /auth/signup
User Routes
- View all users (Admin) - /user/
- Update current user's username - /user/update-username
- Update current user's password - /user/update-password
- ....
Post Routes
- Get all current users posts - /post/:userId
- Get single post - /:postId
- Update post (can only update your post) - /:postId
- Delete post (can only delete your post) - /:postId
- .....
Backend
- Nodejs (expressjs)
- Mongodb (mongoose)
- jwt
- bcrypt
Frontend
- Htmx
- Bootstrap