Portfolio CMS

Portfolio CMS Used AI

5 devlogs
9h 10m
•  Ship certified
Created by Surya

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: admin@example.com, password: expass123

Timeline

Ship 1

1 payout of shell 28.0 shells

Surya

24 days ago

Surya Covers 5 devlogs and 9h 10m

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.

Update attachment

I MANAGED TO DEPLOY (the issue was a database.yml config and I'm blind). Turns out I read the config file comments wrong and thought it would automatically use the environment variable I set, overwriting the default connection I used for dev. That was not the case... Anyways it works and I created an example user (in desc)

Update attachment

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 😭

Update attachment
Surya
Surya
5h 47m 25 days ago

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)

Update attachment
Surya
Surya
1h 56m 29 days ago

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.

Update attachment