Note
This project is currently under development. Features and functionality may change as the project evolves.
This project is an authentication API built using Elysia, Prisma, and JWT. It provides a set of routes for user registration, login, profile management, and user administration.
- User registration and login
- JWT-based authentication
- User profile management
- Admin-only routes for user management
- Elysia: A fast and lightweight web framework
- Prisma: An ORM for database interactions
- JWT: For secure token-based authentication
- Jest: For unit testing
POST /api/v1/users
: Create a new userPOST /api/v1/users/login
: Log in a userGET /api/v1/users
: Retrieve all users (admin only)GET /api/v1/users/:id
: Retrieve a specific user (admin only)GET /api/v1/users/profile
: Get the current user's profilePUT /api/v1/users/:id
: Update a user's information (admin only)DELETE /api/v1/users/:id
: Delete a user (admin only)
To get started with the project, clone the repository and install the dependencies:
git clone https://github.com/mathisdev7/ecom-elysia-api.git ecom-elysia-api
cd ecom-elysia-api
bun install
You can start the API with the following command:
bun dev
This project is licensed under the MIT License.