Skip to content

Installation

Duy Pham Le edited this page Feb 28, 2024 · 32 revisions

If you are new to this or not a developer, I would suggest using Github Codespaces because that just requires you to have a browser. Details below

Github Codespaces

  • Youtube Video Here

Free user get 60 hours/month (which is plenty for your need if you only need 1-2 appointment/month)

  • Go to the code section and press the green "Code button"
  • Go to Codespaces → Create Codespace on main
  • Duplicate example.config.yml and rename it to config.yml
  • Edit config.yml to your preferences.
  • Open hamburger menu on the left pane -> terminal -> open new terminal
  • Type npm install and enter.
  • Wait until the command run correctly, type npm run start and enter.
  • If you want to change config after you run or just stop the app, just use Ctrl + C in the terminal and it will stop
  • After you done you will get an email and a text (if you set your phone number)
  • REMEMBER to destroy your codespace, or it will use up your allowance (60 hours/month for free users)
  • Check your current allowance here

Replit (currently having issues)

Currently a lot of users reported issues when using repl.it! Track the issue here

Check out the youtube video. It is a little bit outdated but still contains information to set it up correctly :)

Run on Repl.it

  • Import the code from GitHub (button above or manually import)
  • Duplicate example.config.yml and rename it to config.yml.
  • Edit config.yml to your information.
  • IMPORTANT: Set loadFromEnv and webserver to true in config.yml
  • Press secrets button on replt and then add data based on example.env file.
Screen Shot 2023-04-03 at 4 39 42 PM
  • Press Run :)

  • If you use a free plan please use monitor services like uptimerobot or cron-job.

  • IMPORTANT: After you got an appointment, delete the website from monitor services. If not, the monitor service keeps "ping" the website and your bot will start scheduling again.

Run on your computer

  • Ensure you installed node.js on your computer.
  • Clone the repo
  • Install dependencies
  • Copy example.config.yml to config.yml and edit it to your preference.
  • npm install
  • npm run start

Run using docker-compose

  • Clone the repo
  • Copy example.config.yml to config.yml and edit it to your preference.
  • docker-compose up