This guide provides step-by-step instructions to set up and run the service.
- Ensure you have Node.js installed (preferably the latest LTS version).
- Install
npm(comes bundled with Node.js). - Set up a PostgreSQL database.
Ensure you have Node.js and npm installed on your system. You can download and install them from Node.js official website.
To verify the installation:
node -v
npm -vRun the following command to install the required dependencies:
npm installExample config.js:
export default {
app: {
host: localhost,
port: 5000
},
database: {
username: your_database_username,
password: your_database_password,
name: your_database_name,
host: your_database_host,
port: 5432
}
};Run the following command to compile TypeScript files into JavaScript:
tscThe compiled JavaScript files will be located in the dist directory.
Start the application using the compiled JavaScript files:
node dist