Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.99 KB

POC.md

File metadata and controls

49 lines (29 loc) · 1.99 KB

Instagram-like Service - Proof of Concept

POC is written in JavaScript with the help of Node.js 12x and Yarn.

Here you will ask why in JavaScript as everywhere in the design I recommend using its superset - TypeScript. The answer is simple. First, JavaScript needs less tooling which makes it perfect for the POC. Second, I have got more samples to work with in JavaScript and I use it more on a daily basis than TypeScript right now.

There are two ways to integrate the real time updating.

These days real time update is almost abandoned in the Social Networks. They show a message that you have new posts and a user action is required to refresh. It could also be disabled after a period of time if it exists at all, as user may have left his tab open which may result in heavy loads, etc...

I have used the Blockchain Data API - https://www.blockchain.com/api/blockchain_api as source of data for the real time update. Yes it is not a feed of images but it works fine to show the concept.

For the test first start the Backend then the Frontend

Frontend

Located inside ./frontend folder. Very simple React app, bootstrapped with [Create React App]

Install the dependencies with:

yarn install

Start with:

yarn start

Backend (API)

Located inside ./api folder. Based on Express.js

Install the dependencies with:

yarn install

Start preferably with:

yarn start:dev

Tests can be started with:

yarn:test or yarn test:quick with or without coverage