Skip to content

ISC-CE/user-service

Repository files navigation

User Service API

Description

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.

Features

  • User Registration
  • User Login
  • Profile Management
  • Token-based Authentication
  • Password Encryption

Technologies Used

  • Node.js
  • Express.js
  • MySQL (via Sequelize ORM)
  • JSON Web Tokens (JWT)
  • Bcrypt.js
  • Docker

Getting Started

Prerequisites

  • Node.js
  • npm
  • MySQL Database
  • Docker

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/user-service.git
    cd user-service
  2. Install the dependencies:
    npm install
  3. 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
  4. Run the sql file from the sql folder to create a base database.
  5. Start docker to setup the database:
    docker-compose up -d
  6. Run the application in development mode:
    npm run dev
  7. Run the application in production mode:
    npm start

Author

Ashwin Raam Sethuram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published