| ... | ... | @@ -14,5 +14,66 @@ The idea behind the EM_Glossary is to offer community accepted, harmonised domai |
|
|
|
alt="EM-Glossary interoperabiltiy" />
|
|
|
|
|
|
|
|
|
|
|
|
## Technologies Used
|
|
|
|
|
|
|
|
- Flask (Backend)
|
|
|
|
- Next.js (Frontend)
|
|
|
|
- MongoDB (Database)
|
|
|
|
- Nginx (Web Server)
|
|
|
|
- Docker (Containerization Platform)
|
|
|
|
- Docker Compose (Multi Docker Container Manager)
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- [Docker](https://www.docker.com/products/docker-desktop)
|
|
|
|
- [Docker Compose](https://docs.docker.com/compose/install/)
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Clone the repository:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://codebase.helmholtz.cloud/em_glossary/em_glossary_web.git
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Build and start the Docker containers:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose up --build
|
|
|
|
```
|
|
|
|
|
|
|
|
This command will build the Docker images and start the containers.
|
|
|
|
|
|
|
|
3. You can access the complete running system at `http://localhost`, and also access the Flask application at `http://localhost:5000` and the Next.js application at `http://localhost:3000` if you needed.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
- Next.js:
|
|
|
|
- Next.js application configuration can be updated in `next.config.js`.
|
|
|
|
- MongoDB:
|
|
|
|
- MongoDB connection details can be updated in `docker-compose.yml`.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
- To start the Docker containers:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose up
|
|
|
|
```
|
|
|
|
|
|
|
|
- To stop the Docker containers:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose down
|
|
|
|
```
|
|
|
|
|
|
|
|
## More Resources
|
|
|
|
- [Flask documentation](https://flask.palletsprojects.com/)
|
|
|
|
- [Next.js documentation](https://nextjs.org/docs)
|
|
|
|
- [MongoDB documentation](https://docs.mongodb.com/)
|
|
|
|
- [Nginx documentation](https://docs.nginx.com/)
|
|
|
|
- [Docker documentation](https://docs.docker.com/)
|
|
|
|
- [Docker Compose documentation](https://docs.docker.com/compose/)
|
|
|
|
|
|
|
|
|
|
|
|
|