MaCPepDB web is a web GUI for the MaCPepDB web API.
- Docker
- NodeJS 14.x
- yarn
- MaCPepDB 2.x
- GIT
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
### Start the app
```bash
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:
- Clone the project
- Prepare the frontend dependencies
yarn install
- Prepare the frontend
yarn build
- Start the frontend
yarn start
- Clone the project
- Build the frontend image
docker build --tag="mpc/macpepdb-web-frontend:<some-version-tag>" -f .
- Start the frontend container
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.
- MaCPepDB: A Database to Quickly Access All Tryptic Peptides of the UniProtKB
Julian Uszkoreit, Dirk Winkelhardt, Katalin Barkovits, Maximilian Wulf, Sascha Roocke, Katrin Marcus, and Martin Eisenacher
Journal of Proteome Research 2021 20 (4), 2145-2150
DOI: 10.1021/acs.jproteome.0c00967