bookenzy is a Node.js application for user authentication and management using JWT (JSON Web Tokens). Built with TypeScript and Express, it allows users to securely register and log in.
- User registration with unique email and username
- JWT-based authentication
- Password hashing with bcrypt
- Node.js
- Express
- TypeScript
- PostgreSQL
- JWT
- bcrypt
- dotenv
- Node.js (v14 or higher)
- PostgreSQL (v12 or higher)
- Clone the repository:
git clone https://github.com/yourusername/bookenzy.git cd bookenzy
- Install dependencies:
Copy code
npm install
- Set up a .env file:
BOOKENZY_JWT_SECRET=your_secret_key
DATABASE_URL=your_database_connection_string
- Start the server:
npm run dev
- POST /v1/register - Register a new user
- POST /v1/login - Log in a user
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.