# dede_es3c [](https://github.com/Arquisoft/dede_es3c/actions) [](https://sonarcloud.io/project/overview?id=Arquisoft_dede_es3c) [](https://app.codecov.io/gh/Arquisoft/dede_es3c) <p float="left"> <img src="https://blog.wildix.com/wp-content/uploads/2020/06/react-logo.jpg" height="100"> <img src="https://miro.medium.com/max/1200/0*RbmfNyhuBb8G3LWh.png" height="100"> <img src="https://miro.medium.com/max/365/1*Jr3NFSKTfQWRUyjblBSKeg.png" height="100"> </p> This project is a basic example of website using **React** with **Typescript** and an endpoint using **NodeJS** with **express**. ## Quick start guide <mark>In case you already have node.js and npm, make sure you update them before attempting to build the images</mark> If you want to execute the project you will need [git](https://git-scm.com/downloads), [Node.js and npm](https://www.npmjs.com/get-npm) and [Docker](https://docs.docker.com/get-docker/). Make sure the three of them are installed in your system. Download the project with `git clone https://github.com/arquisoft/dede_0`. The fastest way to launch everything is with docker: ```bash docker-compose up --build ``` This will create two docker images as they don't exist in your system (the webapp and the restapi) and launch a mongo container database. It will also launch Prometheus and Grafana containers to monitor the webservice. You should be able to access everything from here: - [Webapp - http://localhost:3000](http://localhost:3000) - [RestApi example call - http://localhost:5000/api/users/list](http://localhost:5000/api/users/list) - [RestApi raw metrics - http://localhost:5000/metrics](http://localhost:5000/metrics) - [Prometheus server - http://localhost:9090](http://localhost:9090) - [Grafana server http://localhost:9091](http://localhost:9091) If you want to run it without docker. Compile and run the restapi: ```shell cd restapi npm install npm start ``` Now the webapp: ```shell cd webapp npm install npm start ``` - You should be able to access the application in [DeDesktop](http://dedesktop.hopto.org:3000/). - You should be able to access the documentation in [Documentación](https://arquisoft.github.io/dede_es3c/) ## More information You can get more information about the respository in the other README files: - Documentation: https://github.com/Arquisoft/dede_es3c/tree/master/docs - Webapp: https://github.com/Arquisoft/dede_es3c/tree/master/webapp - Restapi: https://github.com/Arquisoft/dede_es3c/tree/master/restapi ## Miembros del equipo: - Sonia Fernández Coto - UO276237@uniovi.es - Alejandro Álvarez Solís - UO232627@uniovi.es - Nuria Inchaurrandieta Fernández - UO277418@uniovi.es - Sergio Arroni del Riego - UO276341@uniovi.es