This project is the source code related to the seminary "Evoluzione dei pattern di sviluppo di applicazioni web based" (Evolution of development patterns on web applications).
This project is built on:
- Apache + bash script for cgi-bin example
- Apache + PHP + MYSQL for scripting example
- Asp.net core + MYSQL for MVC example
- Asp.ent core + MYSQL + Angular for SPA example
This is used for asp.net core development, is free and fully functional but only for Windows OS. MacOS users can use Visual Studio for Mac or Visual studio code. Linux user can use Visual Studio Code.
Visual Studio Code is used for angular6 application and PHP
Docker is used to running all services in single containers (apache, nginx, mysql,...). This is available only on Windows Professional or Linux.
Docker environment is self-contained and can be activated by
cd /where you have root of this project/
docker-compose up
Just wait until all containers are built and use the link below to test applications.
CGI and Script example are mapped volumes so changes to the files work directly, in other cases application are built so container have to be re-created using docker-compose up --build --force-recreate
- http://localhost:9080/get-the-content (Docker instance)
You can also run in local machine, following manual steps
Install an Apache server and configure a virtual host. You can use this as reference
Install an Apache server with php and setup the virtual host, or simply open a terminal from ./script folder and run php -S localhost:8000
, using the built-in server
Open the .sln file using visual studio and click the play button. Running from local appsettings.js configuration is used (in production env keys override this.)
For the API, just open the .sln file using visual studio and click the play button. Running from local appsettings.js configuration is used (in production env keys ovverride this.) as in MVC example.
To run the frontend:
npm install
ng serve
You can open these urls (port may vary):
- Oauth2: GitHub Analytics: Oauth Killer Application
- Api Gateway: Api Gateway in un esempio pratico
- Slack API:Slack Pusher: Push Slack Messages to Wordpress
- NoSQL:NOSQL or NOT NOSQL?
- Headless CMS: Inside Headless CMS
- TDD+ MVC:Build an ASP.NET Wiki to Explain TDD
- Docker: Simple tutorial to understand docker basics