-
Notifications
You must be signed in to change notification settings - Fork 2
Database setup
Pedro Guimarães edited this page Dec 4, 2015
·
1 revision
In order to create the database structure required to support the API, follow these steps:
-
Create the database. On psql:
create database dataportal_auth
-
Grant user permission to your database user. On psql:
grant all privileges on database dataportal_auth to user {YOUR_USER}
-
Run in a command line:
wget https://raw.githubusercontent.com/sibbr/api/dev/src/main/resources/database/schema.sql
sudo su postgres
psql -d dataportal_auth -W -f schema.sql
exit
**Note: you can use any database name you want. The examples used dataportal_auth, but you can use other names, as long as you remember to apply the same name in all steps of the process.