gotune

package module
v0.0.0-...-86bbf78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 0 Imported by: 0

README

Logo

GoTune

Welcome to GoTune repository! This project aims to provide a backend system for a music streaming application using the Go programming language. It allows you to manage songs, albums, playlists, and more.

This is part of a project for my Programming Languages course at Costa Rica Institute of Technology.

Features

  • Create, retrieve, update, and delete songs, albums, and playlists.
  • Streams audio files using request multiprocessing.
  • SQLite database for data storage and retrieval.
  • RESTful API for interacting with the backend.

Setup

  1. Clone this repository to your local machine:
git clone https://github.com/Johanx22x/GoTune.git
cd GoTune
  1. Install the required Go packages:
go mod download
  1. Configure the backend settings by editing config.go.

  2. Run the backend server:

go run cmd/main/main.go

API docs

Review the API documentation to understand how it works.

Contributing

Contributions are welcome! Feel free to open issues for bug reports, feature requests, or any questions you might have. Pull requests are also accepted.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MusicPath    string // The path to the music directory
	PlaylistPath string // The path to the playlist directory
	AlbumPath    string // The path to the album directory
	DatabasePath string // The path to the database directory
	TempPath     string // The path to the temporary directory

	DatabaseFile string // The path to the database file
	LogFile      string // The path to the log file

	Port  string // The port to run the server on
	Debug bool   // Whether to run in debug mode

	Version string // The version of GoTune
}

func LoadConfig

func LoadConfig(debug bool) *Config

LoadConfig loads the default configuration

Directories

Path Synopsis
cmd
main command
test command
internal
api
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL