Skip to content

janapc/game-api-go

Repository files navigation

Game API

Last commit Language top Repo size

Project   |    Requirement   |    Run Project   |    Request API   |    Technologies

Project

Api to register games(name, description, release date) and manager those games.Used only golang and mysql.

Requirement

To this project your need:

Inside .docker create a first file mysql_password.txt and put your password mysql and create a second file mysql_root_password and put your password root mysql.This configuration wil be used by docker-compose.yaml.

In root folder create a file .env with:

MYSQL_URL="" // mysql url connection

Run Project

Start Docker in your machine and run this commands in your terminal:

## up mongodb, kafka and mysql
❯ docker compose up -d

## run this command to install dependencies:
❯ go mod tidy

## run this command to start api(localhost:8080):
❯ go run main.go

Technologies

  • golang
  • mysql
  • docker

Made by Janapc 🤘 Get in touch!

Releases

No releases published

Packages

No packages published

Languages