Responsible for handling user registration, login, and authentication. It can generate and manage JSON Web Tokens (JWT) for secure authentication.
- Node.js (version 14 or higher)
- npm (Node Package Manager) or yarn
- Clone the repository:
git clone https://github.com/anandh4411/vision-engine-auth-service.git
cd vision-engine-auth-service
- Install the dependencies:
npm install
- Create a
.env
file in the root directory and set the following environment variables:
NODE_ENV='development'
MONGO_URL='mongodb://127.0.0.1:27017/dbname'
Replace the url with the URL of your mongodb database.
- Start the Express API Gateway:
node app.js
- Or use nodemon:
npm i -g nodemon
nodemon app.js
If you want to enable logging of incoming requests during development, set NODE_ENV=development in your .env file.
Contributions are welcome! If you find a bug or have any suggestions, please open an issue or submit a pull request.
Thanks to the creators and maintainers of Express and http-proxy-middleware for their excellent libraries.
This microservice is licensed under the MIT License.