An app that help Fraud Officers see transactions and figure out if it is fraudulent or not, depending upon many different parameters.
This app was boostrapped using a simple starter with frontend using Angular 4+ and API server with NodeJS and Express framework. Typescript is configured for both Frontend and API server.
Frontend is created using angular-cli. So we can use all of the angular-cli commands from client
folder.
This app can be used in two different ways:
-
Separate Frontend and API server.
-
Both Frontend and API served through single node server in production.
-
NodeJS
-
Angualr
-
MongoDB
-
Typescript
-
clone this repository
-
npm run app-install
to install all dependences -
Ensure you have Mongo installed, if not download and install here
-
Pull image from docker hub by running
docker pull melmichael/fraud-detector-app
-
Run the docker image. E.g.
docker run -p 4200:4200 -p 5000:5000 melmichael/fraud-detector-app
-
Run
mongod
to get the mongo instance up and open a way for database connection. -
npm run start
: Starts both frontend and API server as separate live reload server. Frontend usesng serve
underneath and API server usesnodemon
for live reload. -
npm run build
: Createsdist
folder in bothclient
andserver
folders. -
npm run start:prod
: Builds theclient
andserver
projects and starts it withNODE_ENV=production
. This by default setsexpress.static
toclient/dist
to use this node server to serve frontend also. -
Visit
localhost:4200
to view the client side andlocalhost:5000
for the server side.