Anokha 2024 TechFest server.
- Install
Node.js
andnpm
- Install
mysql
. - Create Databases.
CREATE DATABASE anokha;
CREATE DATABASE anokha_transactions;
- Install dependencies.
npm i
- Configure ENV variables. Create
.env.local
file in the root directory of the project using the following template.
DB_HOST = '<MYSQL_HOST_NAME>'
DB_USER = '<MYSQL_USER_NAME>'
DB_PASS = '<MYSQL_PASSWORD>'
DB_NAME = 'anokha'
TXN_DB_NAME = 'anokha_transactions'
MAILER_SERVICE = 'Outlook365'
MAILER_HOST = 'smtp.office365.com'
MAILER_PORT = 587
MAILER_USER = '<OUTLOOK_EMAIL_ID>'
MAILER_PASS = '<OUTLOOK_EMAIL_PASSWORD>'
PAYU_TEST_KEY = '<PAYU_TEST_KEY>'
PAYU_TEST_SALT = '<PAYU_TEST_SALT>>'
PAYU_PROD_KEY = '<PAYU_PRODUCTION_KEY>'
PAYU_PROD_SALT = '<PAYU_PRODUCTION_SALT>'
isProduction = '1'
BASE_URL = "<FRONTEND_BASE_URL_FOR_REDIRECT_OPS>"
BACKEND_PORT = <BACKEND_PORT>
- Run the server.
npm start
Ashwin Narayanan S
Abhinav Ramakrishnan