Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LabelsTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
MaitresNageurs
README
LabelsTower
Commits
3cf648d9
Commit
3cf648d9
authored
4 years ago
by
erichard
Browse files
Options
Downloads
Patches
Plain Diff
Instruction to setup and start the API
parent
0cc40d15
No related branches found
No related tags found
1 merge request
!61
Packager labelstower
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-19
18 additions, 19 deletions
README.md
with
18 additions
and
19 deletions
README.md
+
18
−
19
View file @
3cf648d9
This project delivers some python code for management of elements with system label within a Flask application.
# setup the webservice and start it
retrieve the application on gitlab repos
For testing purpose, a Flask demonstration web site is provided,
to create testing database. Execute the following shell commands from project's root.
```
mkdir instance
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -c 'from models import db;db.create_all()'
mv test.db voiture.db ou codingpool.db
sqlite3 voiture.db '.read data_voiture.sql'
mv voiture.db instance/
```
git clone --branch prototype_labelsTower git@gitlab.in2p3.fr:erichard/LabelsTower.git labels-back-end.git
to be excuted with the help of Docker. You can move to the
`docker`
subdirectory and read the local
`READ.md`
for a detailed description of the provided utility scripts. For the impatient users, the recipe to start the demo wen site is :
setup the database
```
cd docker
./build_dev.sh
./run_dev.sh
```
cd labels-back-end.git
cd docker
./build_dev.sh
./run_dev.sh /bin/bash
mkdir instance
python3 -c 'from models import db;db.create_all()'
mv test.db codingpool.db
sqlite3 codingpool.db '.read data_codingpool.sql'
mv codingpool.db instance/
exit
run the application
./run_dev.sh
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