
Cal.com is a self-hosted open-source appointment scheduling application. It is an alternative to Calendly and allows you to efficiently schedule meetings, appointments, and link external services such as Google Calendar, Zoom through a simple to use web dashboard.
In this guide, you will install self-hosted Cal.com on a Ubuntu 20.04 server.
Switch to the postgres user account.
Open the PostgreSQL console.
Create a new Cal Database.
Create a new database user with a strong password.
Give the new user full rights to the database.
Quit the PostgreSQL console.
Exit the Postgre user account.
Setup the NodeJS version 14 repository.
Install NodeJS.
Install Yarn.
Clone the Cal.com Github repository.
Move the cal.com directory to /opt/. Or if you prefer another system-wide location, like `/usr/local/', adjust the steps below for your location.
Switch to /apps/web/ in the project directory.
Create a new .env configuration file from the .env.example template in the cal.com directory.
Run Yarn to Install Cal dependencies.
Enable Cal.com to run in production mode.
Using your favorite editor, create and edit a new Nginx server configuration file.
Paste the following Nginx configurations:
Replace
cal.example.comwith your actual subdomain.
Save the file.
Test the current Nginx configuration.
Restart Nginx
Create a new systemd service file.
Paste the following contents:
Replace
examplewith an existing user account on your server.
Save the file.
Enable the service.
Restart the Systemd daemon.
Temporarily allow Prisma to run on Port 5555.
Then, allow HTTP traffic on port 80.
Allow HTTPS on port 443.
Restart the firewall.
Using Bcrypt, generate an encrypted password.
Then, install the necessary Prisma database schema using the following command.
Start Prisma Studio.
Using a web browser, load Prisma Studio by visiting your Server IP on port 5555.
Select User from the model list. Then, click Add Record to set up a new by filling in the username, name, email, encrypted password fields, scroll through and enter {} in the metadata field.
Next, stop Prisma, and start Cal with the following command.
Now, visit your configured sub-domain to start Cal
Log in with your username, and password (plain) to start using the self-hosted Cal web application.
Congratulations! You have successfully installed self-hosted Cal on Ubuntu 20.04. To integrate external services, and configure your web dashboard, visit the Cal.com documentation page.
0 Comments
Be the first to comment and share your perspective with the community.