Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: remove old code, change layout, simplify #16

Merged
merged 16 commits into from
Jun 29, 2024
Merged

Conversation

danielmichaels
Copy link
Owner

This is a refresh of the codebase.

I have learnt a lot since first implementing this project.

The layout better reflects lessons learned over time. Much of the logic is unchanged and needs additional refactoring but works as is. Old, unused code has been deleted. Litestream logic and configuration updated to match current recommendations.

The middleware.go file in the server package was deleted. The server and routes.go have also been updated with minor adjustments and a couple of new static paths being logged. In the configuration, some environment variables were adjusted, mainly changing the "AllowedOrigins" to "Domain". Finally, corresponding changes have been made in the ".env.example" and "helpers.go" files to reflect the new domain configuration.
@danielmichaels danielmichaels self-assigned this Jun 29, 2024
@danielmichaels danielmichaels merged commit ecc3caa into main Jun 29, 2024
1 check passed
@danielmichaels danielmichaels deleted the refactor-1 branch June 29, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant