RANO
Reliable And Nonstop Operations
Prerequisites
Use RANO as your new project template
to use "rano" as your new project template first install gonew
go install golang.org/x/tools/cmd/gonew@latest
now run gonew in your new project’s parent directory with two arguments: first, the path to the template you wish to copy, and second, the module name of the project you are creating.
For example:
gonew gitserver.in/patialtech/rano example.com/mynewapp
cd ./mynewapp
Project Structure
cmd
dir contains quick commands or scripts we need in app
config
app configurations depends .env.<environment> file
for development we have .env.development file
db
databse schema and migrations
graph
is gqlgen graph server
mailer
to send emails and contains mail message templates
pkg
folder is home for most of the business logic for your go app
util
shared utilities
web
single page web app built using SvelteKit
assets
keep images and icons used in app init
lib
client lib
public
files of frontend app
routes
svelte app pages
Go packages that are in use
Web modules