https://github.com/datumbrain/play-jwt-starter
https://github.com/datumbrain/play-jwt-starter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datumbrain/play-jwt-starter
- Owner: datumbrain
- Created: 2019-05-28T08:16:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T11:00:37.000Z (about 7 years ago)
- Last Synced: 2025-12-25T17:16:55.364Z (7 months ago)
- Language: CSS
- Size: 11.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# play-jwt-starter
play-jwt-starter project.
## Setup Database
To setup `PostgreSQL` database install using
```
sudo apt install postgresql-9.5
```
1. Create a new user in database
```
sudo -u postgres createuser playdb
```
2. Run the following query to set password in `psql` console
```postgresql
ALTER USER playdb WITH ENCRYPTED PASSWORD '';
```
> Note: You can pick up the password from configuration file `application.conf`.
3. Create the database
```postgresql
CREATE DATABASE playdb;
```
4. Grant database access to newly created user `playdb`
```postgresql
GRANT ALL PRIVILEGES ON DATABASE playdb TO playdb;
```