Skip to content

Hafidzurr/project3_group2_glng-ks-08

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PROJECT 3 - KELOMPOK 2 - HACKTIV8 - MBKM - GOLANG FOR BACK-END

Team 2-KS08 Contributors

  • 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

API URL

Postman Documentation

System Requirement

  • Golang.
  • Postgres SQL.

Installation Local

1. Open terminal or command prompt

git clone https://github.com/Hafidzurr/project3_group2_glng-ks-08
cd project3_group2_glng-ks-08
go mod tidy

2. Setting Database

a. Create database in postgres SQL with name kanban_board 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.

3. Run

go run main.go

Installation and Deploying to Railway

1. Open terminal or command prompt

git https://github.com/Hafidzurr/project3_group2_glng-ks-08
cd project3_group2_glng-ks-08
go mod tidy
! make sure go version in go mod is in accordance with the railway version use

2. 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

3. Create Account Railway using your github Account and Login

Create New Project -> Choose Deploy from github Repo -> Choose Your Repo Name -> Wait Deploying Untill Getting Error

4. Adding Postgres SQL into Your Project

Choose New -> Choose Database -> Choose Postgres SQL -> Wait Deploying Untill Getting Error

5. .env & .gitignore

a. Edit .env in local or there is no, you can create .env and adding :
PGDATABASE=**your_pgdatabase**
PGHOST=**your_pghost**
PGPORT=**your_pgport**
PGUSER=**your_pguser**
PGPASSWORD=**your_pgpassword**
b. Change Variable with your own variable getting from Railway, to see your variable, you can see them in your postgres SQL and go to variables.
c. Edit .gitignore in local or there is no, you can create .gitignore and adding :
.env
d. Push your changes

6. Adding .env Variables

a. Adding whole variable on .env, into your project and go to variables, adding in one by one.
b. Now wait deploying and after that you can create your own domain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages