02/09/2023

PocketBase Installation on Digital Ocean

PocketBase is a fast growing beginner friendly database built in GO.

Installation

PocketBase is a single file database that includes an admin GUI and is ready out of the box. Simply use curl to download it to your server.

curl https://github.com/pocketbase/pocketbase/releases/download/v0.12.2/pocketbase_0.12.2_linux_amd64.zip

Configuration

PocketBase supports flags for changing the host and the port to run PocketBase use this command, adding the flags is optional.

./pocketbase serve —http=127.0.0.1 —port=8080

Optionally you can add this command to a shell script if you are using a service like PM2.

Using a reverse proxy

PocketBase can be used like any server out there, to use NGINX you can follow the guide below to set up NGNIX for you server. Make sure to use the correct port when serving the database.

Back

Comments


Be the first to comment!

Read More

CSS Marquee Replacement

The HTML marquee tag, which was used to create scrolling text or images on a web page, has been deprecated and is no longer supported in modern web development. This means that while it may still work in some older web browsers, it is not considered a valid ...

Node JS HTTP Webserver

Node JS comes out of the box with a built in HTTP module that can handle Hypertext Transfer Protocol requests. You can use this to build a web server without installing anything.

Svelte Markdown Component

Using markdown with Svelte allows you to create super simple websites that require almost no-coding. The svelte-markdown component makes this easy with one line of Svelte.