Topic Nexus API

Topic Nexus API built using Node.js, Express.js, MongoDB

Install the dependencies

npm install

Import dummy data into database

You need to execute the import-dev-data script in dev-data with import flag

npx ts-node dev-data/import-dev-data.ts --import

Delete all data from database

You need to execute the import-dev-data script in dev-data with delete flag

npx ts-node dev-data/import-dev-data.ts --delete

Run in development mode

npm run dev

Build for production

npm run build

Run in production mode

npm start

How to run locally

Install the dependencies and add required environment variables as described in .env.example file.