Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Management CRUD App

A full-stack mini project for managing users with Create, Read, Update, and Delete operations.

Tech Stack

  • Frontend: Vue 3 + Vite + Tailwind CSS + Axios
  • Backend: Express 5 + PostgreSQL + Node.js

Prerequisites

Database Setup

Create a PostgreSQL database and run:

CREATE TABLE users (
    id SERIAL PRIMARY KEY,
    username VARCHAR(100) NOT NULL,
    password VARCHAR(100) NOT NULL
);

Getting Started

1. Backend

cd backend
npm install

Create a .env file:

DB_USER=postgres
DB_HOST=localhost
DB_NAME=your_database_name
DB_PASSWORD=your_password
DB_PORT=5432
PORT=3000

Start the server:

node server.js

The backend runs at the port specified in your .env file (default: 3000).

2. Frontend

cd frontend
npm install
npm run dev

The frontend runs at http://localhost:5173 (Default).

API Endpoints

Method Endpoint Description
POST /adduser Create a new user
GET /getusers Get all users
PATCH /updateuser/:id Update a user
DELETE /deleteuser/:id Delete a user

About

A simple CRUD (Create, Read, Update, Delete) application built as a practice project. The frontend is developed using Vue.js, while the backend is powered by Node.js with Express. PostgreSQL is used as the database for storing and managing data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages