🎵 This is a backend server part of MusicPlayer written in Go (with gin-gonic framework) and uses MSSQL to store data. Interaction with backend realized by REST API.
- 🔑 JWT-tokens authentication
- 👨 User's accounts (create, delete, modify)
- 💵 Placeholder for premium features
- 🎧 Creating and modifying tracks
- 🎶 Managing tracks by playlists
- 📺 Support video
- 📎 Attachment media files to track
Before start you should go through some steps:
- Create database with sql-script in schema folder
- Set up common config in
configs/config.toml
- Write sensitive credentials to .env file
Example of .env file:
DB_PASSWORD="password1234"
MAIL_BOX="[email protected]"
MAIL_PASSWORD="password1233"
# or change it to release
GIN_MODE="debug"
And now to run you can just type make run
REST API client easy to write, so you can make your own client. As example (ugly example) you can use this project. The REST-API client part collected in api
folder and not as bad as other parts =)
- Currently media-files storing in a filesystem, move it to DB
- Make client not so awful