Welcome to the TwilightPortal API Gateway of our E-Commerce System. This component serves as a centralized entry point for the frontend, routing calls to various microservices, and validating user tokens.
The TwilightPortal API Gateway is a component that acts as a central entry point for our e-commerce system. It routes incoming calls from the frontend to the appropriate microservices and handles token validation for user authentication.
Ensure you have the following installed:
- Node.js
- NPM (Node Package Manager)
- Kafka (for event-driven communication)
- Clone the repository.
- Navigate to the twilight-portal-api directory.
cd twilight-portal-api
- Install dependencies.
npm install
-
Set up environment variables for configuration.
- Check the
.env.example
file for guidance. - Create a
.env
file and add the necessary configuration.
- Check the
-
Start the TwilightPortal API Gateway.
npm start
-
Ensure the Kafka server is running to enable event-driven communication.