We have finished creating the services and image storage server. The users interact with the monolithic core to view coupons and the admin interacts with the monolithic core to view unverified coupons, and then it either rejects or accepts a coupon. Other than new coupon submission by the user, everything else by the user and admin is done in the monolithic core.
Open the Initial/monolithic
directory. Inside the directory, you will find a package.json
file and an app.js
file. The app.js
file is where you will write the code, and package.json
lists the dependencies for the monolithic core. The monolithic core is dependent on express
, seneca
, request
and basic-auth npm
packages. Run the npm install
command inside Initial/monolithic
to install the dependencies locally.
We will use the ejs
template engine with Express. Inside the views
directory, you will find ejs
files for home, new coupon submit forms, and admin pages. The files already contain the templates and...