Node js is used to build the endpoint and mocha and chai is used to test Api end points.
Install the dependencies and devDependencies and start the server.
npm install
or
yarn install
npm start
or
yarn start
npm test
Navigate to the directory where the Dockerfile is located and run the following command to build the image:
docker build -t image-name .
Replace your-image-name with the name you want to give to the image. Once the image is built, you can run a container using the following command:
docker run -p 3000:3000 your-image-name
I have done deployment using render. Url of the deployed api is - https://social-media-app-6lkl.onrender.com