"Mobile first" full stack web app for streaming music.
Clone this repository and set up a MySQL Server if you do not already have one.
/backend/models/sql/
use <YOUR DATABASE NAME>
source create-tables.sql
Insert a row to the table user
by running the following SQL statement
INSERT INTO
user (username, password, superuser)
VALUES("<YOUR USERNAME>", "<YOUR BCRYPT HASHED PASSWORD>", 1)
You will have to hash the password yourself using any bcrypt hashing tool. This row will act as your admin account, you may create multiple if you want more than one admin. There is currently no use for non-admin users.
/backend/
DBUSER="<YOUR DATABASE USER>" DBPASS="<YOUR DATABASE PASSWORD>" DBNAME="<YOUR DATABASE'S NAME>" BACKEND_PORT=3000 UPLOADS_DIR_PREFIX="../frontend/public/" go run .
/frontend/
npm install
and wait for it to complete.npm run dev
to start the vite dev server.localhost:5173
npm install
inside /frontend/
npx vite build
.
/frontend/dist/
, which you simply put inside /var/www/html/
(or another directory used by your web server)GOARCH="amd64" GOOS="linux" go build -o backend
UPLOADS_DIR_PREFIX
relevant to your deployment.