- Node.js: Ensure Node.js is installed (version 20 or higher recommended).
Run the following command to install required dependencies:
yarn install
# or
npm installCreate a .env file in the root directory and populate it with the following variables:
SERVER_PORT=4000
SERVER_HOST ="127.0.0.1"
ACCESS_TOKEN_TTL="86400"
CRON_EXPRESSION_GENERATE_CSV_REPORT= '*/5 * * * *' # A CADA 5 MIN
REPORT_EMAIL = <email-to-report-csv>
FIREBASE_API_KEY= <your-firebase-env>
FIREBASE_AUTH_DOMAIN= <your-firebase-env>
FIREBASE_PROJECT_ID= <your-firebase-env>
FIREBASE_STORAGE_BUCKET= <your-firebase-env>
FIREBASE_MESSANGING_SENDER_ID= <your-firebase-env>
FIREBASE_APP_ID= <your-firebase-env>
FIREBASE_MEASUREMENT_ID= <your-firebase-env>Replace <your-firebase-env>, and other placeholders with actual values.
To start the application in development mode, use:
yarn dev
# or
npm run devThe application will be available at http://localhost:4000.
The swagger will be available at http://localhost:4000/docs
or you can use the doc swagger.json available in the source code
To build the application for production:
yarn build
# or
npm run buildThen, start the application in production mode:
yarn start
# or
npm run start