User Service is a microservice that is part of an e-commerce project created during the Inspiring Bootcamp. This service is responsible for handling user-related operations such as registration, authentication, and profile management.
- User Registration
- User Login
- Profile Management
- Token-based Authentication
- Password Encryption
- Node.js
- Express.js
- MySQL (via Sequelize ORM)
- JSON Web Tokens (JWT)
- Bcrypt.js
- Docker
- Node.js
- npm
- MySQL Database
- Docker
- Clone the repository:
git clone https://github.com/your-username/user-service.git
cd user-service
- Install the dependencies:
npm install
- Create a .env file in the project root and add the required environment variables:
- when you face error with localhost you can try using 127.0.0.1 instead.
DB_HOST=your_database_host DB_USER=your_database_user DB_PASS=your_database_password DB_NAME=your_database_name JWT_SECRET=your_jwt_secret
- Run the sql file from the sql folder to create a base database.
- Start docker to setup the database:
docker-compose up -d
- Run the application in development mode:
npm run dev
- Run the application in production mode:
npm start
Ashwin Raam Sethuram