From bf32442bbb7164d56ca86a467d1ecb054658043e Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Mon, 9 Aug 2021 15:12:31 +0530 Subject: [PATCH] feat: add sample env --- .env.sample | 7 +++++++ .github/CONTRIBUTING.md | 2 +- .gitignore | 3 ++- server/enum/dbType.go | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .env.sample diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..7e65f00 --- /dev/null +++ b/.env.sample @@ -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 \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 7776012..561f4bc 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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` diff --git a/.gitignore b/.gitignore index 9b46157..b8032bf 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ server/.env data app/node_modules build -.env \ No newline at end of file +.env +data.db \ No newline at end of file diff --git a/server/enum/dbType.go b/server/enum/dbType.go index bea287c..3a7d331 100644 --- a/server/enum/dbType.go +++ b/server/enum/dbType.go @@ -11,7 +11,7 @@ const ( func (d DbType) String() string { return [...]string{ "postgres", - "sqlit", + "sqlite", "mysql", }[d] }