Skip to content
Snippets Groups Projects
Commit e96b0c41 authored by David Beniamine's avatar David Beniamine
Browse files

Merge branch 'anthony-master-patch-01012' into 'master'

Update Readme.md

See merge request !1
parents 764f8931 52839226
No related branches found
No related tags found
1 merge request!1Update Readme.md
COMPOSE_FILE=docker-compose.yml:ports.yml COMPOSE_FILE=docker-compose.yml:ports.yml
HOST=0.0.0.0 HOST=0.0.0.0
PORT=5000 FLASK_PORT=5000
MYSQL_USER=mirador_backend MYSQL_USER=mirador_backend
MYSQL_PASSWORD=randompassword MYSQL_PASSWORD=randompassword
MYSQL_ROOT_PASSWORD=otherrandompassword MYSQL_ROOT_PASSWORD=otherrandompassword
......
# Mirador backend # Mirador backend
## Get the project
`git clone gitlab@gitlab.tetras-libre.fr:iiif/backend.git && cd backend`
## Install and run ## Install and run
### local ### local
#### Requirements #### Requirements
+ virtualenv (optionnal) + virtualenv (optionnal)
...@@ -12,11 +15,14 @@ ...@@ -12,11 +15,14 @@
#### Dev mode #### Dev mode
1. Optionnal create a virtual env `virtualenv venv && . venv/bin/activate` 1. Optionnal create a virtual env :
- `virtualenv venv && . venv/bin/activate`
- OR `python3 -m venv venv && . venv/bin/activate`
2. Install dependencies `pip install -e .` 2. Install dependencies `pip install -e .`
3. `cp .env.sample .env` and edit `.env` file to suit your needs 3. `cp .env.sample .env` and edit `.env` file to suit your needs
4. Run `flask --debug --app Mirador_backend.app run` 4. Run `flask --debug --app Mirador_backend.app run`
5. Go to [http://localhost:5000/mirador_resource](http://localhost:5000/mirador_resource)
#### Production mode #### Production mode
**TODO** **TODO**
...@@ -40,6 +46,8 @@ cp .env.sample .env ...@@ -40,6 +46,8 @@ cp .env.sample .env
docker-compose up docker-compose up
``` ```
Go to [http://localhost:5000/mirador_resource](http://localhost:5000/mirador_resource)
#### Test #### Test
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment