The development of MaCPepDB Web is moved to a new repository: https://github.com/medbioinf/macpepdb-frontend
MaCPepDB web is a web GUI for the MaCPepDB web API.
MaCPepDB Web consists of two parts.
macpepdb_web_backend
- A Flask web application, providing the API endpoints.macpepdb_web_frontend
- A NuxtJS application, providing the web pages.
Start the MaCPepDB web API, than start the GUI
# Install node requirements
yarn install
yarn dev
The frontend can than be accessed on port http://localhost:5000
The frontend is configured by 3 environment variables: | variable | default | description |
---|---|---|---|
MACPEPDB_BACKEND_BASE_URL | http://localhost:3000 |
Base URL for the backend (no trailing slash, must be accessible for the internet browser) | |
MACPEPDB_FRONTEND_INTERFACE | 127.0.0.1 |
IP for the frontend | |
MACPEPDB_FRONTEND_PORT | 5000 |
Port of the frontend | |
MACPEPDB_FRONTEND_BASE_URL | http://localhost:5000 |
Base URL part for building full URLs |
You have two options to run the app:
yarn install
yarn build
yarn start
docker build --tag="mpc/macpepdb-web-frontend:<some-version-tag>" -f .
docker run -d -it --name="macpepdb-web-frontend" -p <host-port>:<container-port> mpc/macpepdb-web-frontend:<some-version-tag>
(Adjust the environments variables with -e VAR=<VALUE>
)For production and combination of backend and frontend into a single domain just merge the nginx.example.conf with the one of MaCPepDB web API.