Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
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
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
Show more breadcrumbs
AURA
engine-api
Commits
ced63515
Commit
ced63515
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
MariaDB setup.
parent
ec92bc57
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+11
-3
11 additions, 3 deletions
README.md
contrib/mariadb-database.sql
+4
-0
4 additions, 0 deletions
contrib/mariadb-database.sql
contrib/mariadb-requirements.txt
+1
-0
1 addition, 0 deletions
contrib/mariadb-requirements.txt
with
16 additions
and
3 deletions
README.md
+
11
−
3
View file @
ced63515
...
@@ -9,14 +9,22 @@ This project is based on a swagger-enabled Flask server using an *API First* app
...
@@ -9,14 +9,22 @@ This project is based on a swagger-enabled Flask server using an *API First* app
## Requirements
## Requirements
Python 3.7+
Python 3.7+
MariaDB (or similar Database)
#
#
G
et
ting started
#
S
et
up
Install the required dependencies:
Install the required dependencies:
```
bash
pip3
install
-r
requirements.txt
# Additional requirements for the chosen database
pip3
install
-r
contrib/mariadb-requirements.txt
# Create database and user (change password in script)
sudo
mysql
-u
root
-p
< contrib/mariadb-database.sql
```
```
pip install -r requirements.txt
## Getting started
```
To run the server, please execute the following from the root directory:
To run the server, please execute the following from the root directory:
...
...
This diff is collapsed.
Click to expand it.
contrib/mariadb-database.sql
0 → 100644
+
4
−
0
View file @
ced63515
CREATE
DATABASE
aura_engine_api
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
;
CREATE
USER
'aura_engine_api'
@
'localhost'
IDENTIFIED
BY
'1234'
;
GRANT
ALL
PRIVILEGES
ON
aura_engine_api
.
*
TO
'aura_engine_api'
@
'localhost'
;
FLUSH
PRIVILEGES
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
contrib/mariadb-requirements.txt
0 → 100644
+
1
−
0
View file @
ced63515
mysqlclient==1.3.12
\ No newline at end of file
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