This README provides a guide to setting up and running the project locally, along with additional information about its features, technologies used, and how to contribute.
To set up and run this project locally, follow these steps:
-
Clone the repository from GitHub:
git clone https://github.com/MessaAlberto/TrentoJOB.git
-
install the required dependencies:
npm install
-
Set up environment variables:
-
Create a
.env
file in the root of the project. -
Add the following environment variables to the
.env
file:PORT=3000 MONGODBURI=your_mongodb_uri JWT_SECRET_TOKEN=your_jwt_secret_token JWT_EXPIRE_TOKEN=30d JWT_SECRET_REFRESH=your_jwt_secret_refresh JWT_EXPIRE_REFRESH=30d JWT_SECRET_MAIL=30 JWT_EXPIRE_MAIL=30d MAIL_SERVICE=your_mail_service MAIL=your_mail MAIL_SECRET=your_mail_secret
Adjust these variables according to your specific requirements.
-
To run the application locally in development mode, use the following command:
npm run devStart
This command will start the server and make your application available at http://localhost:3000.