Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SmartGarden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CHEVRIER Maelys
SmartGarden
Commits
c78627d1
Commit
c78627d1
authored
1 year ago
by
DIROU Aina
Browse files
Options
Downloads
Patches
Plain Diff
credentials lopy and readme
parent
77a3eb62
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
lopy/insertdatatodb.py
+4
-4
4 additions, 4 deletions
lopy/insertdatatodb.py
with
9 additions
and
5 deletions
README.md
+
5
−
1
View file @
c78627d1
...
...
@@ -8,11 +8,15 @@ Pour plus d'informations sur les jardins partagés et le cadre du projet, vous p
Copier-coller le fichier
`.env.template`
en
`.env`
puis changer les variables.
Dans le dossier
`lopy`
modifier les fichiers
`lopy.py`
et
`insertdatatodb.py`
(ctrl + F "replace").
Réaliser un petit
`docker compose up -d`
pour lancer le projet.
Le frontend devient accessible sur le port
`3000`
, le backend sur
`9002`
et PHPMyAdmin sur
`9001`
.
Et quand tu veux éteindre le docker,
`docker compose down`
(et pas
`docker compose down -v`
sinon tu supprimes les volumes)
Créer votre database via PHPMyAdmin puis relancer le backend.
Pour éteindre le docker,
`docker compose down`
(et pas
`docker compose down -v`
sinon suppression des volumes)
## Auteurs
Chevrier Maelys, Aina Dirou, Kangoute Souleymane, Quevedo Cristian
This diff is collapsed.
Click to expand it.
lopy/insertdatatodb.py
+
4
−
4
View file @
c78627d1
...
...
@@ -4,10 +4,10 @@ from datetime import datetime
def
sendlastlinetodb
():
# Connect to your MySQL database
conn
=
mysql
.
connector
.
connect
(
host
=
'
localhost
'
,
user
=
'
root
'
,
password
=
'
'
,
database
=
'
projetsmartgarden
'
host
=
'
your-host-name
'
,
#to replace
user
=
'
your-user-name
'
,
#to replace
password
=
'
your-password
'
,
#to replace
database
=
'
your-database-name
'
#to replace
)
cursor
=
conn
.
cursor
()
...
...
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