- change current working directory to
database
(this README is located at) (if not done already) - Execute
python3 setup.py
. If you execute the script again and the database exists, the script will update the database (if necessary) and rebuild the view used by mentorAPI's search feature. - Create a user (e.g.
mentorapi_user
) for mentorAPI and makeservice.py
(located in the root dir) start under that user - Give the user permission to execute "select" and "insert". Give it also the SQL unrelated permission "Inherit", "Can Login" needed to operate with the database.
Get in DB Operations some queries which mentorAPI uses. But head over to ../database/queries.yml for a complete and up to data version of all used queries which mentorAPI uses.