Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsantos99/user-manager
Fullstack application for user management
https://github.com/gsantos99/user-manager
express fullstack postgresql react
Last synced: 14 days ago
JSON representation
Fullstack application for user management
- Host: GitHub
- URL: https://github.com/gsantos99/user-manager
- Owner: Gsantos99
- Created: 2024-09-11T11:50:54.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-15T23:26:07.000Z (2 months ago)
- Last Synced: 2024-11-03T04:02:45.665Z (14 days ago)
- Topics: express, fullstack, postgresql, react
- Language: JavaScript
- Homepage:
- Size: 209 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User Management
This is a simple user management backend application that performs CRUD (Create, Read, Update, Delete) operations on user data. The project is built using **Node.js**, **Express**, and **PostgreSQL**. It follows a clean architecture with a separation of concerns between **Routes**, **Controllers**, and **Repositories**.
## Features
- **Create a user**: Add a new user to the database.
- **Get all users**: Retrieve a list of all users.
- **Get user by ID**: Fetch user details by their unique ID.
- **Update a user**: Update the information of a specific user.
- **Delete a user**: Remove a user from the database.## Tech Stack
- **Backend**: Node.js, Express.js
- **Database**: PostgreSQL
- **Environment Management**: dotenv
- **Database Connection Pooling**: pg (node-postgres)
- **Live Reload**: nodemon## Project Structure
The project is organized as follows:````
backend/
├── config/ # Database configuration
│ └── db.js
├── controllers/ # Logic to handle requests
│ └── userController.js
├── repositories/ # Database queries
│ └── userRepository.js
├── routes/ # Application routes
│ ├── router.js # Main router file
│ └── userRoutes.js # User-specific routes
├── .env # Environment variables
├── index.js # Application entry point
├── package.json # Dependencies and scripts
└── .gitignore # Ignored files and folders
``````