Skip to content

Commit

Permalink
Merge pull request #76 from kartAI/feat/75-docs-on-xml_storagepy-script
Browse files Browse the repository at this point in the history
Update: Update docs for populate-database.sh script
  • Loading branch information
magnusgiverin authored Nov 6, 2024
2 parents a04e75b + d7dc4dc commit 810430e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/manuals/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ If you get a question of whether or not to create a password, choose `yes`.

After the script is done running, the `DATABASE_URL` field in your `.env` file should look something like this.

To populate the database with mock data, run the `webapp/populate-database.sh` script.
To populate the database with mock data, run the `populate-database.sh` script from the `webapp` folder. Ensure that you are in the `webapp` folder due to filepath restrictions in Python. For the underlying Python script to function, ensure you have the mysql-connector package - install this using the command
`pip3 install mysql-connector-python`, alternatively `pip install mysql-connector-python`.

```yml
DATABASE_URL="mysql://root:{password}@localhost:3306/ntnu-kpro-ai-assistant"
Expand Down

0 comments on commit 810430e

Please sign in to comment.