This project is a containerized full-stack web application built with:
- Angular (Frontend)
- Flask (Backend)
- MongoDB (Database)
- Docker Compose (Orchestration)
-
Clone the repository:
git clone https://github.com/martafelix13/Adele-Backoffice.git cd Adele-Backoffice -
Build and start all services:
docker compose up --build
-
Access the Adele Backoffice app:
- Frontend: http://localhost:4300
- Backend API: http://localhost:8081
Adele-Website app:
- Frontend: http://localhost:4200
- Backend API: http://localhost:8080
These are the pre-defined user accounts available after deployment. Each role has specific authorizations:
Role Username Authorizations ADMIN admin Full access: manage users, settings, and all data TRE-OPERATOR operator Manage and review the projects, validate legal documents and metadata OUTPUT-VALIDATOR validator Validate output after task completion Passwords are securely hashed in the database. Default passwords are:
- admin: admin123
- operator: operator123
- validator: validator123 Change passwords in production for security.
To run the Adele-Website frontend locally:
cd Adele-Website/TRE-BIODATA
npm install
ng serveVisit http://localhost:4200 in your browser.
To run the Adele-Website backend locally:
cd Adele-Website/backend
pip install -r requirements.txt
python server.pyThe API will be available at http://localhost:8080.
To run the Flask backend locally:
cd backend
pip install -r requirements.txt
python server.pyThe API will be available at http://localhost:8081.
To run both Adele-Backoffice and Adele-Website together, with MongoDB and shared documents:
-
Make sure your
.envfile is set up with all required variables for both projects. -
Use the provided
docker-compose.yml(in the project root) which includes services for:adele-backoffice-frontend(Angular + Nginx)adele-backoffice-backend(Flask)adele-website-frontend(Angular + Nginx)adele-website-backend(Flask)mongodb(MongoDB)tre-shared-documents(shared volume)
-
Build and start all services:
docker compose up --build
-
Access the apps at the URLs above.
- Default credentials are listed above.
- If you change ports or environment variables, update them in
.envfiles anddocker-compose.yml. - For troubleshooting, check logs with:
docker compose logs
Enjoy using Adele!