DEV Community

Cover image for Open Source backend in just 1 File
muneebbug
muneebbug

Posted on • Edited on

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

Top comments (6)

Collapse
 
polterguy profile image
Thomas Hansen

You should checkout Magic - You can also self host it as Open Source if you wish :)

Collapse
 
muneebbug profile image
muneebbug

Thank you Thomas, I will try it 😀

Collapse
 
bias profile image
Tobias Nickel

wow, this looks cool!! a potential alternative for strapi, what do you think?

Collapse
 
muneebbug profile image
muneebbug

yeah It pretty much competes with strapi and main thing its built on GO which is crazy faster and can handle more requests than javascript. its simple to setup and easy to learn. Its Javascript SDK is easy and straightforward. It has embedded file storage and database. 👌

Collapse
 
baasmurdo profile image
BaasMurdo

Seems interesting. Think I will give a go on my next small project.

Collapse
 
muneebbug profile image
muneebbug

Cheers 😀