This project is a Node.js application. Before you can run it, you need to set up your environment.
Before running the application, ensure that you have the following installed on your machine:
- Node.js
- npm
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the project dependencies by running:
npm install
- Build the project by running:
npm run build
- Install pm2 globally. pm2 is a production process manager for Node.js applications with a built-in load balancer. You can install it by running:
npm install pm2 -g
This project uses environment variables for configuration. These are stored in a .env
file. A sample .env.sample
file is provided in the repository.
To use the .env.sample
file:
- Copy the
.env.sample
file and rename the copy to.env.
- Replace the placeholder values in the
.env
file with your actual values.
After you've set up your environment, you can start the server by running:
pm2 start dist/server.js --name server-api -i 3
To ensure that the server restarts when the system reboots, run:
pm2 startup
pm2 save
That's it! You've now set up and run the server. If you have any issues, please open an issue.
This project is licensed under the MIT License. See the LICENSE file for details.
Please note that this license does not cover any third-party libraries or dependencies used in this project. Those libraries and dependencies are covered by their respective licenses.