Base API can now be self hosted 🎉
Thanks to Crystal, the end result is just a binary that you download and run on your own server (Linux for now, macOS coming soon).
You can create projects and use all of the same features as the online version with the same interface without any restrictions.
You will need to configure:
The database, which needs to be PostgreSQL.
The credentials for a Mailgun account to send emails (SMTP will be available soon).
Optionally credentials for AWS S3 if you want to store files and images in the cloud, otherwise they will be saved locally.
Download the binary and save it in a directory and make it runnable:
chmod +x base-latest-linux
Create the configuration file in the same directory named
config.ymlwith the following content (replaced with your credentials):
database_url: "postgres://postgres:postgres@localhost/base" files_path: "public/files" license: "l2vHT62y6qbB5hFv" mailgun_api_key: "FVn5k63OcsVUgA7T" mailgun_domain: "some.domain.com" s3_region: "eu-west-1" s3_bucket: "base" s3_secret: "8SXLTxMnaWnsfX7b" s3_key: "s6T5NULtt25jCUzV" log_level: "debug" admin_username: "admin" admin_password: "12345"
Run the migrations to create the tables in the database with the
Start the server with the
./base-latest-linux —port 8080command.
Navigate to http://localhost:8080 to see the dashboard.
That’s it you now have Base API running on your server and you can connect to it with any of the client libraries.
📻 Follow me for more Base API goodness in the near future.
Throughout the last year, I have worked part-time as a working student and also studied at the university. I was not the first and not the last one who has combined that during their studies, but the problem for me was, that at the end of the day I have felt absolutely exhausted mentally and physically. That caused problems with my health and motivation to continue working on my goals or anything. (yeah, “goals,” I wish I had something more specific at that time).