Open Source backend in just 1 File

muneebbug

muneebbug

Posted on July 12, 2022

Open Source backend in just 1 File

Hi, I'm Muneeb, Freelance Front-end Developer. I will keep the post short and to the point.
So I came accross an Amazing Open Source Project called PocketBase developed in GOLang. I was blown away with the capabilities of this project. Read more on their repo.

There's no need to manage 100's of file for your backend. you just have a single executable file and that's it. Feels untrue right? I thought that too but when I tried it, I was speechless.

Here are the features mentioned on their website

  • Realtime database
  • Authentication
  • File storage
  • Admin dashboard

Just one file. Damn. Here's how to get it
Go to this link and download the file for your specific OS.

Then you need to unzip the archieve. In my case on Linux I used following commands

Head over to downloads folder where you saved it.

cd Downloads
Enter fullscreen mode Exit fullscreen mode

Then you need to extract the archieve

unzip pocketbase_0.2.4_linux_amd64.zip
Enter fullscreen mode Exit fullscreen mode

Then you need to open the extracted folder

cd pocketbase_0.2.4_linux_amd64
Enter fullscreen mode Exit fullscreen mode

and final step

./pocketbase serve
Enter fullscreen mode Exit fullscreen mode

Hurrayy!! Your Self-Hosted Real Time Server is rolling on

http://localhost:8090
Enter fullscreen mode Exit fullscreen mode

The admin panel UI is hosted on

http://localhost:8090/_/
Enter fullscreen mode Exit fullscreen mode

and the REST API is hosted on

http://localhost:8090/api/
Enter fullscreen mode Exit fullscreen mode

Now go to http://localhost:8090/_/

Pretty simple HUH? So here's the first time signup page
Image description

and here's the ADMIN Panel for you. Congragulations, You have your own self-hosted backend in just 5 minutes.

Image description

Thanks for reading my post ❤️ Leave a comment!

@muneebbug

💖 💪 🙅 🚩
muneebbug
muneebbug

Posted on July 12, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related