Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IIIF
backend
Commits
c797161d
Commit
c797161d
authored
2 years ago
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Update Readme.md
parent
764f8931
Branches
Branches containing commit
No related tags found
1 merge request
!1
Update Readme.md
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Readme.md
+11
-3
11 additions, 3 deletions
Readme.md
with
11 additions
and
3 deletions
Readme.md
+
11
−
3
View file @
c797161d
# 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
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment