-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add companies list and enable hot realod
- Loading branch information
1 parent
c97008c
commit 3018b9d
Showing
7 changed files
with
191 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
run: | ||
go run main.go | ||
gin run -p 8081 main.go | ||
build: | ||
set GOOS=macos && go build -o main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package models | ||
|
||
type Company struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
LogoURL string `json:"logo_url"` | ||
WebsiteURL string `json:"website_url"` | ||
SocialMedia SocialMedia `json:"social_media"` | ||
Slogan string `json:"slogan"` | ||
Industry string `json:"industry"` | ||
CEO string `json:"ceo"` | ||
Since string `json:"since"` | ||
Offices []Office `json:"offices"` | ||
Headquater Office `json:"headquarter"` | ||
} | ||
|
||
type Office struct { | ||
Country string `json:"country"` | ||
Town string `json:"town"` | ||
Venue string `json:"venue"` | ||
} | ||
|
||
type SocialMedia struct { | ||
Facebook string `json:"facebook"` | ||
Whatsapp string `json:"whatsapp"` | ||
X string `json:"x"` | ||
LinkedIn string `json:"linkedin"` | ||
Instagram string `json:"instagram"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package service | ||
|
||
import "github.com/baimamboukar/go-gin-docker-k8s/src/models" | ||
|
||
func GetAllCompanies() []models.Company { | ||
companies := []models.Company{ | ||
{ | ||
ID: "1", | ||
Name: "TechGenius", | ||
Industry: "Technology", | ||
Slogan: "Innovate for Tomorrow", | ||
WebsiteURL: "https://techgenius.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Douala", Venue: "Tech Street"}, | ||
Since: "2010", | ||
CEO: "John Doe", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/techgenius", Instagram: "https://instagram.com/techgenius"}, | ||
}, | ||
{ | ||
ID: "2", | ||
Name: "AgroHarvest", | ||
Industry: "Agriculture", | ||
Slogan: "Cultivating Quality, Nurturing Life", | ||
WebsiteURL: "https://agroharvest.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Bamenda", Venue: "Green Valley"}, | ||
Since: "2012", | ||
CEO: "Alice Green", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/agroharvest", Instagram: "https://instagram.com/agroharvest"}, | ||
}, | ||
{ | ||
ID: "3", | ||
Name: "EcoTech Solutions", | ||
Industry: "Environmental Services", | ||
Slogan: "Sustainable Solutions for a Green Tomorrow", | ||
WebsiteURL: "https://ecotech.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Yaoundé", Venue: "EcoPark"}, | ||
Since: "2015", | ||
CEO: "Emma Eco", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/ecotech", Instagram: "https://instagram.com/ecotech"}, | ||
}, | ||
{ | ||
ID: "4", | ||
Name: "FoodDelight", | ||
Industry: "Culinary", | ||
Slogan: "Taste the Delight, Feel the Flavor", | ||
WebsiteURL: "https://fooddelight.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Limbe", Venue: "Gourmet Avenue"}, | ||
Since: "2013", | ||
CEO: "Chef Delia", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/fooddelight", Instagram: "https://instagram.com/fooddelight"}, | ||
}, | ||
{ | ||
ID: "5", | ||
Name: "CamFashion", | ||
Industry: "Fashion", | ||
Slogan: "Where Style Meets Elegance", | ||
WebsiteURL: "https://camfashion.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Buea", Venue: "Fashion Street"}, | ||
Since: "2014", | ||
CEO: "Stella Styles", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/camfashion", Instagram: "https://instagram.com/camfashion"}, | ||
}, | ||
{ | ||
ID: "6", | ||
Name: "GreenPower", | ||
Industry: "Renewable Energy", | ||
Slogan: "Empowering Lives, Energizing Futures", | ||
WebsiteURL: "https://greenpower.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Kribi", Venue: "EcoEnergy Park"}, | ||
Since: "2011", | ||
CEO: "James Green", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/greenpower", Instagram: "https://instagram.com/greenpower"}, | ||
}, | ||
{ | ||
ID: "7", | ||
Name: "HealthHub", | ||
Industry: "Healthcare", | ||
Slogan: "Caring for a Healthier Tomorrow", | ||
WebsiteURL: "https://healthhub.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Ebolowa", Venue: "Wellness Avenue"}, | ||
Since: "2016", | ||
CEO: "Dr. Grace Healthy", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/healthhub", Instagram: "https://instagram.com/healthhub"}, | ||
}, | ||
{ | ||
ID: "8", | ||
Name: "TourCam", | ||
Industry: "Tourism", | ||
Slogan: "Explore, Experience, Enjoy", | ||
WebsiteURL: "https://tourcam.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Bafoussam", Venue: "Adventure Plaza"}, | ||
Since: "2018", | ||
CEO: "Tom Traveler", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/tourcam", Instagram: "https://instagram.com/tourcam"}, | ||
}, | ||
{ | ||
ID: "9", | ||
Name: "EduTech Solutions", | ||
Industry: "Education Technology", | ||
Slogan: "Transforming Education, Empowering Minds", | ||
WebsiteURL: "https://edutech.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Dschang", Venue: "Knowledge Hub"}, | ||
Since: "2017", | ||
CEO: "Professor Ed Tech", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/edutech", Instagram: "https://instagram.com/edutech"}, | ||
}, | ||
{ | ||
ID: "10", | ||
Name: "ArtGallery", | ||
Industry: "Arts and Culture", | ||
Slogan: "Where Creativity Speaks", | ||
WebsiteURL: "https://artgallery.cm", | ||
Headquater: models.Office{Country: "Cameroon", Town: "Bamako", Venue: "Creative Corner"}, | ||
Since: "2016", | ||
CEO: "Alice Artist", | ||
SocialMedia: models.SocialMedia{Facebook: "https://facebook.com/artgallery", Instagram: "https://instagram.com/artgallery"}, | ||
}, | ||
} | ||
|
||
return companies | ||
} |