This is a demo of a Node server that serves an image as a base64 string.
The Angular part simply displays the image fetched from the server.
-
cd server
-
npm i
npm i
See server/index.js
for the server code. It serves a demo image as base64.
To run the server:
-
cd server
-
node .
OR
npm start_server
This project was generated with Angular CLI version 8.3.18.
Run npm start
for a dev server (it will start the Node server and the Angular dev server).
Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the Angular source files.