File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -82,4 +82,4 @@ git clone https://github.com/aderepas/WeekGolf
82
82
cd WeekGolf/Client
83
83
npm i
84
84
npm start
85
- ` ` ` a
85
+ ```
Original file line number Diff line number Diff line change 15
15
* [ sample.sql] ( #samplesql )
16
16
* [ DEV.sql] ( #devsql )
17
17
* [ <img src =" ../assets/folder-controller.svg " style =" height : 30px ; display : inline ; transform : translateY (5px )" > config] ( #img-srcassetsfolder-controllersvg-styleheight-30px-display-inline-transform-translatey5px-config )
18
+ * [ How to test ?] ( #how-to-test- )
18
19
19
20
<!-- vim-markdown-toc -->
20
21
@@ -59,3 +60,17 @@ The definition of tables for the database.
59
60
60
61
### <img src =" ../assets/folder-controller.svg " style =" height : 30px ; display : inline ; transform : translateY (5px )" > config
61
62
The directory to configure the connection to the DataBase
63
+
64
+ ## How to test ?
65
+ To test the code on local, first you'll need to initialize the back-end.
66
+ ``` sh
67
+ git clone https://github.com/aderepas/WeekGolf
68
+ cd WeekGolf/Server
69
+ npm i
70
+ ```
71
+ After that, we need to create the database
72
+ ``` sh
73
+ db_name_weekgolf=' weekgolfdev'
74
+ mysql -u username -p -e " CREATE DATABASE $db_name_weekgolf ; USE $db_name_weekgolf ; source src/db/DEV.sql;"
75
+ mysql -u username -p " $db_name_weekgolf " < src/db/sample.sql
76
+ ```
You can’t perform that action at this time.
0 commit comments