I recently wrote an article about how to improve the quality of your DSA preparation. You can check that article out here. But that takes some time and effort from you every day to keep your notion up to date. In this post, we're going to automate the process using Vercel and GitHub Actions.
A Leetcode account (link)
A Notion account (link)
A GitHub account (link)
A Vercel account (link)
Have read the DSA preparation using Leetcode and Notion post (link)
Fork this repo: LC_Notion
Go to settings.
Go to Environments.
Add a new Environment with the name
Click on Configure environment and add secret.
Add a secret by the name of
ACCESS_TOKEN. Write the username and password you'd like to use in Value in the given format "
username":"password". You can use anything for your username and password (just keep it safe as we'll need it in step 9).
Click on Add secret and we're done with the GitHub part. Let's head over to Vercel. Click on create a new project.
Import the repository you forked.
Last step! add the environment variables
AUTH_PASSWORDare the username and password that you put in GitHub environment secrets in step 6.
LC_USERNAMEis your Leetcode username. You can look up the precursor article(link) for
Click on Deploy.
The Notion page will be updated every 8 hours. All the smart work is done for you when it comes to DSA preparation, all you need to do now is hard work.
Leetcode & chill.
Good luck with your interviews!
Did you find this article valuable?
Support Azanul Haque by becoming a sponsor. Any amount is appreciated!