Skip to content

kareemtarekK/userApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 User System API

User System is an API designed using the Repository Pattern to manage users in a PostgreSQL database. It follows a clean architecture approach to separate concerns and make the codebase maintainable and scalable.

🚀 Features

  • CRUD operations for users.
  • Structured using the Repository Pattern for better organization.
  • Fully tested to ensure reliability.

🛠️ Tech Stack

  • Node.js – runtime environment.
  • PostgreSQL – database for storing user data.
  • pg – Node.js module to connect to PostgreSQL.
  • node-pg-migrate – used to run all migration files and manage database schema.
  • Jest – test runner for running automated tests.
  • Supertest – module to test API endpoints and verify functionality.

⚡ Installation

  1. Clone the repository:
    git clone <https://github.com/kareemtarekK/userApi.git>
    cd <pg>
    npm install
    DATABASE_URL=postgres://postgres:12345@localhost:5432/socialnetwork-test
    npm run migrate up
    npm run start
    npm run test

👍👍👍👍👍

About

user api is connected to postgresql database to store and manage all data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors