sebsto / monotomicro

Monolith to micro services demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monolith to micro services demo

A React front end and a monolithic API.

Local testing

Start the front end locally

cd frontend 
npm install 
cp config.json.DEFAULT config.json
npm start run

Start the monolith api locally

Assuming pipenv is installed :

cd monolith-api 
pipenv shell
pipenv install 
python api.py

Remote Deployment

Frontend

I am using Amplify console, connect it to my github repo and let it deploy the app. Amplify console gives an url like https://main.dld2lvjirxlja.amplifyapp.com (this is an example)

To do

  • automatic deployment of the monolithic api version to EC2
  • document the demo end-to-end

Done

  • add config.jsonin frontend to connect to backend
  • amplify console to host to deploy the front end (manual)
  • add microservice cart with SAM

Thank you

  • the front end is largly inspired from the work of my colleague Gunnar Grosch
  • to the numerous people asking and answering questions on stackoverflow.com. This knowledge base is so important to me to learn, improve, and correct my mistakes.

About

Monolith to micro services demo

License:MIT No Attribution


Languages

Language:TypeScript 61.2%Language:Python 29.8%Language:HTML 5.7%Language:CSS 1.8%Language:Shell 1.5%