HUB
Sign inSign up

matfire/spotitech

By matfire

•Updated over 4 years ago

Image
2

1.0K

matfire/spotitech repository overview

⁠SpotiTech

⁠A mock spotify API for Epitech Students

⁠Description

The Spotify API Web@cademy students should use for their "rush".

⁠Installation
  • Install Docker⁠ for your preferred system
  • Install Docker Compose⁠
  • Download the .sql file provided by the Intranet
  • Create a docker-compose.yml at the root of your project assuming the .sql file is called my_spotify_db.sql, the docker-compose.yml should look like this:
version: "3"
services:
    api:
      image: matfire/spotitech
      environment:
        - DB_HOST=db
        - DB_PORT=3306
      ports:
        - "8000:3000"
      restart: "unless-stopped"
      depends_on:
        - db
    db:
      image: mysql
      volumes:
        - ./my_spotify_db.sql:/docker-entrypoint-initdb.d/dump.sql
        - ./data/:/var/lib/mysql
      environment:
        - MYSQL_ROOT_PASSWORD=toor
        - MYSQL_DATABASE=spotify
        - MYSQL_USER=spoty
        - MYSQL_PASSWORD=spotypwd
⁠Environment Variables
  • DB_HOST: the hostname for the database service
  • DB_PORT: the port to connect to the MySQL service
  • DB_USER: the user with which to connect to the MySQL service
  • DB_PWD: the user's password
  • DB_NAME: the name of the database to connect to
Tag summary
Recent tags
Content type
Image
Digest
Size
115.9 MB
Last updated
over 4 years ago
docker pull matfire/spotitech:latest