This repository is a front-end client built with nodeJS and Ejs a template engine of javascript which consumes a back-end API to perform CRUD operation.
Find the backend API here - https://github.com/atiqbaqi/crud-backend-api
Required Tools:
-
You need to install nodejs and its package manager npm.
-
Clone git repository -
git clone https://github.com/atiqbaqi/crud-frontend.git
-
Go to the application folder and open a terminal.
-
Install the application dependencies with the next command:
npm install
-
Execute the next command in the terminal.
npm start
- Build image
docker build -t crud-frontend .
- create container from image and run
docker run --name crud-frontend --rm -p 8081:8081 crud-frontend
Finally access using the following url: http://localhost:8081