Farga
- 3 Devlogs
- 37 Total hours
Git forge.
Git forge.
It took a long while because
I implemented a couple things: repos, configuration, and I’ve began writing the SSH server.
When you create a repo, an actual git repo is also created on the filesystem. Since this project is meant to be used by just me, I don’t need anything fancier or more performant. I made it so you can make them private too.
Configuration options were also relatively easy to implement. All I did was take advantage of my form validation middleware. Updating the DB schema was trivial. You can upload SSH keys now too-
Imagine how I felt after 2 hours of debugging failed repo creation and then realizing: shit, I didn’t pass a pointer to the database function, didn’t I
See ya,
Deuces
I made a whole lot of progress: I setup the template engine, cool asf styles, registration and logging in!!
It took me a while because I’m not fluent in Go(lang). However, I’m very glad it worked out great! I also had to implement a wrapper around Go’s crypto/argon lib, since it wouldn’t give me a nice format to store password hashes in.
I’m using UUID v7s for the sessions because I love UUIDs, really. + it’s not as sensitive as a numeric ID.
I’m glad I got it working! Now I’ll write some authentication middleware.
A friend of mine helped me choose the color palette, and I’m very fond of it.
Setting up the Go(lang) project!
(it’s my first time learning go and templates were kinda confusing)