December 20, 2022

How to setup HarperDB on Ubuntu

Welcome to Community Posts
Click below to read the full article.
Summary of What to Expect
Table of Contents
  1. Open the Terminal app in Ubuntu Linux.
  2. Run the following commands to update packages in Ubuntu:
  3. sudo apt update
  4. sudo apt upgrade
  5. Install nvm (Node Version Manager) using the command:
  6. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
  7. Restart the Terminal and verify the installation of nvm, Node, and npm using the commands:
  8. nvm --version
  9. node -v
  10. npm -v
  11. Install Node v14.20.0 using nvm:
  12. nvm install 14.20.0
  13. Verify the Node version with node -v.
  14. Install HarperDB globally using npm:
  15. npm install -g harperdb
  16. Check the installed version of HarperDB using harperdb version.
  17. Start HarperDB with the command:
  18. harperdb run
  19. Follow the setup instructions to create a new username and password for your local instance.
  20. Use the following commands to stop and restart HarperDB:
  • harperdb stop
  • harperdb restart
  1. Access the HarperDB website inside Ubuntu and sign in to your account.
  2. Register your user-installed instance with the provided instance info.
  3. Accept any warning messages regarding self-signed certificates.
  4. Select the free plan, agree to the terms, and add the instance.
  5. Your instance should now be live, and you can use it like a normal HarperDB instance.