Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify clone api with go

Spotify clone api for go it's a clone of spotify only for learning purpose.
## Prerequisites to execute:

Clone or fork this repository.

Create a .env with this data:

PORT="8080"
GIN_MODE="debug"
MYSQL_USERNAME= "your_username"
MYSQL_PASSWORD= "your_password"
MYSQL_HOST= "your_host"
MYSQL_PORT= "your_mysql_port"
MYSQL_DATABASE= "your_database_name"
APP_NAME = "your_app_name
HOST = "Were your app will be running, example: localhost"

In case you want to execute a local database using docker modify docker-compose.yml with your data.

 version: '3'

services:
  db:
    image: mysql
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_DATABASE: exampleDatabase
      MYSQL_USER: exampleUser
      MYSQL_PASSWORD: examplePassword
      MYSQL_ROOT_PASSWORD: exampleRootPassword
    ports:
      - "3306:3306"
    volumes:
      - ./mysql_data:/var/lib/mysql

Now to run your local database using docker use the following command:

 docker-compose up -d 

How to run the app:

To run this app you have to execute the following command:

 go run cmd/main.go

Contributions:

Stargazers repo roster for @USERNAME/REPO_NAME Forkers repo roster for @USERNAME/REPO_NAME

About

Spotify clone api for go it's a clone of spotify only for learning purpose.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages