This project is an ongoing user management engine built with TypeScript using Nx in a monorepository setup. It enables user administration and session authentication with JWT.
- Basic user API (
base-api
) for CRUD operations. - JWT-based authentication.
- CI/CD setup with Nx.
- Node.js: Ensure you have the latest version installed.
- Docker (optional): For container deployment.
Clone the GitHub repository and navigate to the project directory:
git clone https://github.com/0xdeafdead/user-management-engine.git
cd user-management-engine
Install all required dependencies by running:
npm install
Create a .env file in the project root and configure the necessary variables for database connection, authentication, etc. Example:
DB_HOST=localhost
DB_PORT=5432
JWT_SECRET=yourJWTSecret
To run the project in development mode, use:
npx nx serve base-api
To build the project for production, run:
npx nx build base-api
To use Docker, follow these steps:
Build the Docker image:
docker build -t user-management-engine .
Run the container:
docker run -p 3000:3000 user-management-engine
To run tests, use:
npx nx test base-api
If you'd like to contribute:
- Fork the repository.
- Create a new branch for your feature (git checkout -b [feat/fix]/new-feature).
- Make your changes and commit them (git commit -m "[feat/fix/chore]: Add new feature").
- Push your branch to the remote repository (git push origin [feat/fix]/new-feature).
- Open a pull request for review.
This project is licensed under the MIT License.