feat: add sample env

This commit is contained in:
Lakhan Samani 2021-08-09 15:12:31 +05:30
parent 3b49790ce4
commit b9872b5aac
4 changed files with 11 additions and 3 deletions

7
.env.sample Normal file
View File

@ -0,0 +1,7 @@
ENV=production
DATABASE_URL=data.db
DATABASE_TYPE=sqlite
ADMIN_SECRET=admin
DISABLE_EMAIL_VERIFICATION=true
JWT_SECRET=random_string
JWT_TYPE=HS256

View File

@ -45,7 +45,7 @@ Please ask as many questions as you need, either directly in the issue or on [Di
1. Fork the [authorizer](https://github.com/authorizerdev/authorizer) repository (**Skip this step if you have access to repo**)
2. `git clone https://github.com/authorizerdev/authorizer.git`
3. `cd authorizer`
4. `mv .env.sample .env`. Check all the supported env [here](TODO)
4. `cp .env.sample .env`. Check all the supported env [here](TODO)
5. Build the code `make clean && make`
> Note: if you don't have [`make`](https://www.ibm.com/docs/en/aix/7.2?topic=concepts-make-command), you can `cd` into `server` dir and build using `go build` command
6. Run binary `./build/server`

3
.gitignore vendored
View File

@ -3,4 +3,5 @@ server/.env
data
app/node_modules
build
.env
.env
data.db

View File

@ -11,7 +11,7 @@ const (
func (d DbType) String() string {
return [...]string{
"postgres",
"sqlit",
"sqlite",
"mysql",
}[d]
}