This Go project aims to automate the completion of video game information in a Notion database. It simplifies the task of collecting and updating details of video games, including titles, franchises, genres, platforms, and release dates, by connecting to the Notion database.
This section is mandatory only if you want to download the source & run the code on your local machine. Either, you can directly go to the [Configuration section]()
To get started, you need to install Go, download the source code and install all the dependencies it needs to work properly.
$ git clone https://github.com/RedSkiesReaperr/notion-igdb-autocomplete
$ cd notion-igdb-autocomplete
$ go mod download
This section will help you to get all the mandatory variables from third party apps and create the base application configuration.
Create a .env
file to save your configuration informations:
$ cp ./.env.example .env
If you start from scratch: Duplicate the Notion template and go to step 2
If you already have a Notion database: Continue to step 1
Create a Notion database (or configure an already existing one) with the following properties:
Create a private Notion integration on your account by following the getting started page before the "Setting up the demo locally" step.
Put your integration API secret as value of the NOTION_API_SECRET
in your .env
file.
Go on your Notion databse, click on the "..." button and on the "copy link" option. As mentionned in environment variables section, Get the ID of your database and put it as value of the NOTION_PAGE_ID
in your .env
file.
At this point you should have a Notion database, with all mandatory properties. You should have created a private Notion integration connected with you database. You should have a
.env
file in your cloned project directory who have two values filled:NOTION_API_SECRET
andNOTION_PAGE_ID
IGDB_CLIENT_ID
& IGDB_SECRET
. Afterward fill IGDB_CLIENT_ID
& IGDB_SECRET
in your .env
file. If you need more detailed explanations, follow the 'More details about IGDB configuration' section below.🎉 Congrats, configuration done! 🎉
Once you are on the Twitch developers portal:
http://localhost
.IGDB_CLIENT_ID
IGDB_SECRET
$ make build
$ ./bin/app
By running the app this way you will get into a nicer and clearer TUI (text-based user interface) than the more conventional way to run. You can navigate through it by using your keyboard. It will also help you to have a better understanding of whats going on. Here is a sneak peak of this TUI:
$ docker pull redskiesreaperr/notion-igdb-autocomplete:latest
$ docker run \
-e NOTION_PAGE_ID=your_notion_page_id \
-e IGDB_CLIENT_ID=your_igdb_client_id \
-e IGDB_SECRET=your_igdb_secret \
-e NOTION_API_SECRET=your_notion_api_secret \
-e REFRESH_DELAY=5 \
redskiesreaperr/notion-igdb-autocomplete:latest
$ docker build \
--platform linux/386,linux/amd64,linux/arm,linux/arm64 \
-t image:tag \
.
Thanks to all the authors who created and maintains the following packages:
If you wish to contribute to this project, please follow these steps:
This project is licensed under the MIT License. See the LICENSE file for details. Feel free to open issues or submit feature requests if you have ideas to enhance this project.