Gaurav-Gosain / uadmin-railway

Deploy your uAdmin project and host it with a single click (and a few more steps 👀) !
https://gaurav-gosain.github.io/uadmin-railway/
6 stars 1 forks source link

[Query] Readme question #1

Open Akilan1999 opened 1 year ago

Akilan1999 commented 1 year ago

Would it make more sense to fork the project and then deploy to railway since you can create your custom models.

Using a sqlite mode requires no extra configuration for connection since sqlite is binary and uses Cgo.

I guess it would make sense to split the tutorial into 2 half. One with Sqlite implementation and MySql implementation.

Gaurav-Gosain commented 1 year ago

Hey Akilan thanks for the query!

Would it make more sense to fork the project and then deploy to railway since you can create your custom models.

Yes absolutely, the project is already configured in such a way that if your Github account is connected to Railway and if you click Deploy on Railway, it should ask you to chose a location to save a new project. So basically railway will take care of creating a copy (independent from my repository) under your preferred namespace. You can even edit the name and visibility (public/private) of the project 😄

image (Example: As you can see in the first input, it automatically clones it for you)

Using a sqlite mode requires no extra configuration for connection since sqlite is binary and uses Cgo.

Agreed, this was my initial approach aswell, but the way railway works is it creates a docker image every time the build process is triggered, since the previous sqlite file is bundled with the current docker container, when the new container spins up, the information from the previous db gets lost, hence this new MySQL approach. But sqlite support is something I definitely want to work on and is on my TODO list :)

I guess it would make sense to split the tutorial into 2 half. One with sqlite implementation and MySQL implementation.

For sure, in-fact during the linking MySQL to uadmin programmatically, I noticed that uAdmin also supports postgres (also supported by railway) which would also be an interesting next-step and I could probably make separate tutorials for different database configurations for sure!