An api that connects with github's api via github's Oauth service
- Install Chocolatey
windows
- Install Make
choco install make
windows
- Install Scoop
- Install migrate
scoop install migrate
- Install Docker
-
Create in root directory
.env
andtoken.env
files -
token.env
has one parameterACTIVE_TOKEN
which shouldn't be filled by default -
.env
has the following parameters-
DB_URL
will contain the db url for the migration file it will have this formatpostgres://username:password@host:port/database?host=/var/run/postgresql/data&sslmode=disable
-
CLIENT_ID
will contain client ID from the Oauth2.0 application of Github -
DB_URL_API
will contain the database url that the dockerized api will accesspostgres://username:password@host:port/databasename
-
CLIENT_SECRET
will contain client secret from the Oauth2.0 application of Github
-
Open a powershell terminal and run the following command in project's root directory to create the migrations
make migrate
Run the following command to start the project
make up