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.
- CRUD operations for users.
- Structured using the Repository Pattern for better organization.
- Fully tested to ensure reliability.
- 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.
- 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
👍👍👍👍👍