SAM-BAMKOLE / Simple-user-and-post-fullstack-APP

A simple nodejs and express app that allows users create an account (signup), signin and manage their posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple User and Post API

A simple nodejs and express app that allows users create an account (signup), signin and manage their posts.

Turtle in the sea

How it works

  • 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

Routes

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
  • .....

Tools

Backend

  • Nodejs (expressjs)
  • Mongodb (mongoose)
  • jwt
  • bcrypt

Frontend

  • Htmx
  • Bootstrap

About

A simple nodejs and express app that allows users create an account (signup), signin and manage their posts.


Languages

Language:JavaScript 60.7%Language:EJS 39.3%