deep-microservices-todomvc is a fully serverless todo-application inspired from todomvc.com. Frontend part is built on top of Angular-CLI (Angular 5), but backend is cloud-native and is managed by DEEP Framework. This repository is open sourced to show case how developers can build and deploy hassle-free cloud-native web applications using microservices architecture and serverless computing.
Make sure that you have proper software installed
- Clone repository
- Go to
src/deep-todomvc
directory - Prepare backend by running
npm run prepare-backend
- Prepare frontend by running
npm run prepare-frontend
- Go back to
src
directory - Run Microservice in Development mode
deepify server ./
-
During this step configure your
frontend/backend
parameters, setrunAsApi
totrue
in order to be able to useng-cli
for frontend development; -
When this step is finished,
- And
runAsApi=false
just open in your browser the link http://localhost:8000 - And
runAsApi=true
go tosrc/deep-todomvc/frontend
and runnpm run start
and go http://localhost:4200
- And
-
Enjoy the deep-microservices-todomvc running locally.
- Deploy Microservice to Production
After your development work is done just run (from src
directory):
- Compile backend:
deepify compile prod
- Deploy the application:
deepify deploy
Amazon CloudFront distribution takes up to 20 minutes to provision, therefore don’t worry if it returns an HTTP error in the first couple of minutes.
- Remove Microservice from Production
In case if you want to undeploy this AWSome ;) application, just run (from src
directory):
deepify undeploy
Amazon CloudFront distribution takes up to 20 minutes to unprovision. That's why
deepify
command checks every 30 seconds if it's disabled and when successful, removes it from your account.
Having questions related to deep-microservices-todomvc?
- Ask questions: https://stackoverflow.com/questions/tagged/deep-framework
- Chat with us: https://mitocgroup.slack.com/messages/general
- Send an email: [email protected]
Interested in contributing to deep-microservices-todomvc?
This repository is being sponsored by:
This code can be used under MIT license:
See LICENSE for more details.