- Hafidzurrohman Saifullah (GLNG-KS-08-02) - GitHub@Hafidzurr - Golang For Back-End - Universitas Gunadarma
- Sherly Fauziyah Syaharani (GLNG-KS-08-018) - GitHub@Sherlyfauz - Golang For Back-End - Universitas Merdeka Malang
- Timotius Winsen Bastian (GLNG-KS-08-016) - GitHub@Kozzen890 - Golang For Back-End - Universitas Dian Nuswantoro
https://project2-group2-glng-ks-08-production.up.railway.app/
https://documenter.getpostman.com/view/27920824/2s9YeD7Czk
- Golang.
- Postgres SQL.
- Gorm.
- Open terminal or command prompt
git clone https://github.com/Kozzen890/project2-group2-glng-ks-08
cd project2-group2-glng-ks-08
go mod tidy
-
Setting Database
a. Create database in postgres SQL with name mygram or you can change whats name you like, but coution here you must change database name in db.go too.
b. Go to db.go, comment line code from dns = fmt.Sprintf - dbname, dbPort) and uncomment line code dsn = "host=host....
c. Change to your own db credential in db.go.
-
Run
go run main.go
- Open terminal or command prompt
git clone https://github.com/Kozzen890/project2-group2-glng-ks-08
cd project2-group2-glng-ks-08
go mod tidy
-
Push into Your New Repo a. Create a New Repository in Your Github Account
b. Change the Remote URL
git remote set-url origin https://github.com/new_user/new_repo.git
c. Push to the New Repository
git push -u origin master or your name for repo banch
-
Create Account Railway using your github Account and Login
-
Adding Postgres SQL into Your Project
-
env & .gitignore
PGHOST=**your_db_host** PGPORT=**your_db_port** PGUSER=**your_db_user** PGPASSWORD=**your_db_password** PGDATABASE=**your_db_name**
b. Change Variable with your own variable getting from Railway, to see your variable, you can see them in your
postgres SQL
and go tovariables
..env
-
Adding
.env
Variables