I created a DIY headless CMS (content management system) for my portfolio as a learning exercise to familiarize myself with Ruby on Rails. This is part of the Railway YSWS.
try it out (currently in demo): email: [email protected], password: expass123
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I thought everything was fine but that was not the case. When you tried to login , the app failed since the cache database was not found. After 2hrs of dying, I finally fixed my issue (if you set DATABASE_URL in prod as an environment variable for database connection, it overwrites the database name field for cache, queue, and cable so you need to set a URL environment variable for all of them or do string manipulation). I did string manipulation on the URL so now it works!! I also uploaded a basic readme.
deployment is krilling me help (i have spent like 4hrs trying to deploy to coolify but the container won't connect to the db) someone save me 😭
I locked in and did a lot more than I thought I could do... (got these hours mostly in 1-2 sessions)
This is my first time using Rails, so I kinda learned as I went through schema editing and migrations. Coming from React, Rails is pretty interesting cuz of how structured it is. I started off creating/modifying the schema (in theory) and running the commands to create the schema and migrations, then worked on the controllers and used Copilot to generate a simple UI, which I had to spend quite a bit of time changing; still ended up being quicker than making it myself though. I struggled quite a bit with the gallery/multiple images upload since it would delete the existing images when editing other fields. Had to use Copilot to help debug that (had to change the update function with a few conditions).
Overall, I'm somehow almost done except setting up linting and deployment and the readme... okay so probably not almost done but pretty close. (made with a combo of pico CSS and tailwind; ik this seems like mixing water and lava but it's actually a good combo trust)
FINALLY GOT RUBY AND RAILS AND THE PROJECT SETUP. this was actually crazy and took ages cuz I installed ruby on my OS through package manager AND on asdf and there was conflict and it caused kaboom so I had to uninstall both and reinstall ruby on asdf for it to work wahhgone.
Installed picocss and auth, doing some basic setup.