simonskodt / itu-minitwit Goto Github PK
View Code? Open in Web Editor NEWWeekly updates in the course DevOps, Software Evolution and Software Maintenance
License: MIT License
Weekly updates in the course DevOps, Software Evolution and Software Maintenance
License: MIT License
Right now all workflows are run in parallel, meaning that some could fail while CD succeeds. Could possibly lead to live server crash?
Think about, discuss in your groups, and note down in which way you are going to collaborate using Git in this project.
You should reflect and decide on the following points:
Information to at least all of the above points should end up in a markdown document in your main repository (likely called CONTRIBUTE.md).
We recommend that you do not rewrite history by rebasing or squashing your commits. The main reason is that it remains visible in the history who did what and when.
When you access the endpoint of a nonexistent user, you still get to see the private page of that user. Instead, this should give a 404 or another error message.
Tracking issue for:
Our curret solution takes fetches all message on /public, foeach message, the userID is used to calls the backend for the username. The implementatio nis not optimal, and triggers alooot of traffic.
(A little late, we're sorry ๐ )
In the headers of some of the sim requests, the authorization header is not present.
Deploy the current release of your ITU-MiniTwit, see task 2 b), to a remote ("cloud") server.
Do not create and provision VMs manually, instead use a corresponding script, Vagrantfile, or a similar reproducible setup for that task.
You are free to deploy to whichever Infrastructure-as-a-Service (IaaS) provider of your choice or your own servers.
The only requirement is that your deployment is automatically reproducible, i.e., no clicking in UIs required, and that your application is reachable via a public IP/domain.
Do not deploy to a Platform-as-a-Service, like Heroku, Google App-Engine, etc.
Make your development environment and deployment environment "look alike". That is, you develop on an Ubuntu 22.04 based Linux (Pop!_OS), choose the same environment for your remote server(s).
Hint: To make future operations more smooth, you might consider to use a floating IP 'infront' of your actual server, see the API spec. for receiving one.
Add layers relevant to onion architecture.
In the format:
/msgs?n=10
The test suite in minitwit_tests.py
should pass for your refactored application too. Likely, you have to modify the setup method slightly so that it points to your application.
However, all test methods of the API tests should pass on your refactored application.
First in a next step translate the old test suite to your new language/tech. stack too.
Rewrite the application in mini-steps at a time.
Error message: System.FormatException: Element 'latestVal' does not match any field or property of class MiniTwit.Core.Entities.Latest.
Something in the flow of the service layer regarding the latestVal
For your refactoring work, use Docker. That is create respective Dockerfiles and Docker Compose files in your repository. These containerize your application and allow all team members to develop your application in a uniform environment.
Split single repositories into 3
Let repositories return response and remove service layer project
You can find the specification for the simulator API in API_Spec/minitwit_sim_api.py. OBS: your applications have to:
The API_Spec/minitwit_sim_api.py depends on your refactored minitwit.py from last week's homework.
A corresponding test (API_Spec/minitwit_sim_api_test.py) illustrates how the simulator requests will be formed. You can inspect it and run it via pytest minitwit_sim_api_test.py. (pytest can be installed via pip)
Next to the unit test, there is a small program with some more test data, which is similar to the simulator program that will run against your systems. It is located in API_Spec/minitwit_simulator.py and can be run via:
$ python minitwit_simulator.py http://localhost:5001
where the argument http://localhost:5001 has to be replaced with the URL of where your simulator API is running. In case this simulator test does not log any errors, you should be all fine for next week. If errors are logged, you have to fix the corresponding issue either in your implementation of the simulator API or in the implementation of your version of ITU-MiniTwit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.