Skip to content

Commit

Permalink
Improve the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Aug 9, 2020
1 parent c7a1a43 commit ff6ac00
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

A Json web tokens server

## Install
## Install and run

Clone the repository

### Database
### Create the database

Create the Postgresql database:
Create a Postgresql database:

```bash
sudo su postgres
Expand All @@ -22,29 +22,34 @@ Create the Postgresql database:

Replace `pguser` by your database user

### Configuration
### Compile for production

```bash
cd quidui
npm install
npm run build
cd ..
go build
```

### Configure

Create a config file:

```bash
go run main.go -conf
./quid -conf
```

Edit the config file to provide your database credentials. Initialize the database and create an admin user:

```bash
go run main.go -init
./quid -init
```

## Run in production mode
### Run

```bash
cd quidui
npm install
npm run build
cd ..
go build -o bin/quid
./bin/quid
./quid
```

Go to `localhost:8082` to login into the admin interface
Expand Down

0 comments on commit ff6ac00

Please sign in to comment.