Language : English
Create Simple RESTful API with GO, Complete with simple Mobile and Desktop App
The operating system I use: Windows 11
- API (Go/Gin,Gorm)
go
command installed on terminal(go1.20.7)
- Visual Studio Code
- Go Extexsion *optional
- Desktop App (C#/.NET 5)
- Visual Studio 2019
- Mobile App (Dart/Flutter)
- Latest version of Flutter has been installed
(Flutter 3.10.5)
or above - Flutter Extension *optional
- Latest version of Flutter has been installed
- Database (SQLServer)
- SQL Server Management Studio 18 (If your version is different from mine, maybe you can try it :p)
- Other? (maybe in future i'll add mariaDb(mysql)? or i'll use Firebase for NoSQL database? if I'm free, lol)
- Postman
Maybe feature in this Information System is all about Create, Read, Update, and Delete, no more.
But this an simple implementation of API, which can be used as a bridge between databases and different application platforms.
Take a peek 👀
New Validation Style!
- Clone this repo OR see the Release.
- [DATABASE]
- In your database, create database named db_Restaurant_Khip01 (or you can change the name in setup.go). Then Migrate it with
go run main.go
on your terminal. - [DESKTOP APP]
- You can open .sln file and run project manually OR you can simply run the installer app (Installer restaurant_desktop-app.msi) in
restaurant_desktop-app/Restaurant_App-Installer/
folder. - [MOBILE APP]
- Just run the application via vscode/android studio/terminal OR you can also check the .apk file in the release assets section of this repo Don't forget to change your API Endpoint in .env
Important
[API NEEDS] There is important to change your datasource(dsn) address in setup.go
file, according to your needs.