Skip to content

A Node server that serves an image as base64 + an Angular demo that displays the image.

Notifications You must be signed in to change notification settings

agmo/node-image-to-base64

Repository files navigation

NodeImageToBase64

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.

Installation

Server only

  1. cd server

  2. npm i

Angular demo

  1. npm i

Server

See server/index.js for the server code. It serves a demo image as base64.

To run the server:

  1. cd server

  2. node .

OR

  1. npm start_server

Angular

This project was generated with Angular CLI version 8.3.18.

Development server

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.

About

A Node server that serves an image as base64 + an Angular demo that displays the image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published