Skip to content
Snippets Groups Projects
Commit ced63515 authored by David Trattnig's avatar David Trattnig
Browse files

MariaDB setup.

parent ec92bc57
No related branches found
No related tags found
No related merge requests found
...@@ -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)
## Getting started # Setup
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:
......
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
mysqlclient==1.3.12
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment