This repository contains the LascadeTask API, a Node.js application that includes user creation, authentication, CSV upload and processing, and database operations using MongoDB. The API also integrates with Redis for efficient task queue management.
Ensure that you have the following installed on your local system:
- Node.js
- Redis
First, clone the repository to your local system:
git clone https://github.com/Duyoofmp/LascadeTask.git
cd LascadeTask
Install the required Node.js dependencies:
npm install
Create a .env file in the root directory with the following content:
PORT=3000
MONGO_URI=mongodb://localhost:27017/lascade
JWT_SECRET=qwertyuiop
REDIS_URL=redis://localhost:6379
Ensure that Redis is running on your local system. If you are using WSL (Windows Subsystem for Linux), you can start Redis with the following command:
wsl redis-server
Start the Node.js application:
node app.js
The application should now be running on
http://localhost:3000
To view the API documentation, navigate to
http://localhost:3000/api-docs
Note: If you are running the application locally, make sure to update the swagger.json
file to reflect the local URL. Change the host to localhost:3000
and ensure the scheme is set to
'http'