Musare can be installed with Docker (recommended) or without, guides for both installations can be found below.
To update an existing installation please see Upgrading.
git clone https://github.com/Musare/Musare.git
cd Musare
./musare.sh build
./musare.sh start
./musare.sh admin add USERNAME
git clone https://github.com/Musare/Musare.git
cd Musare
cd frontend && npm install && cd ..
cd backend && npm install && cd ..
systemctl start redis mongod
cd frontend && npm run dev
and
cd backend && npm run dev
separately.windows-start.cmd
or just double click the
windows-start.cmd
file and all servers will automatically start up.startRedis.cmd
and startMongo.cmd
to start Redis and Mongo.cd frontend && npm run dev
and
cd backend && npm run dev
separately.(optional) Register a new user on the website and grant the admin role by running the following in the mongodb shell.
use musare
db.auth("MUSAREDBUSER","MUSAREDBPASSWORD")
db.users.update({username: "USERNAME"}, {$set: {role: "admin"}})
Windows Only
.database
Create a file called startMongo.cmd
in the root directory with the contents:
"C:\Program Files\MongoDB\Server\4.0\bin\mongod.exe" --dbpath "C:\Path\To\Musare\.database"
Make sure to adjust your paths accordingly.
Start the database by executing the script startMongo.cmd
you just made
Set up the MongoDB database itself
systemctl start mongod
startMongo.cmd
script you just madeConnect to Mongo from a command prompt
mongo admin
Create an admin user
db.createUser({
user: "admin",
pwd: "PASSWORD_HERE",
roles: [
{
role: "userAdminAnyDatabase",
db: "admin"
}
]
})
Connect to the Musare database
use musare
Create the "musare" user
db.createUser({
user: "musare",
pwd: "OTHER_PASSWORD_HERE",
roles: [
{
role: "readWrite",
db: "musare"
}
]
})
Exit
exit
Add the authentication
auth=true
to /etc/mongod.conf
systemctl restart mongod
startMongo.cmd
add --auth
at the end of the first lineWindows
In the folder where you installed Redis, edit the redis.windows.conf
file
notify-keyspace-events
.Make sure that property is uncommented and has the value Ex
.
It should look like notify-keyspace-events Ex
when done.
Create a file called startRedis.cmd
in the main folder with the contents:
"C:\Path\To\Redis\redis-server.exe" "C:\Path\To\Redis\redis.windows.conf"
"--requirepass" "PASSWORD"
And again, make sure that the paths lead to the proper config and
executable. Replace PASSWORD
with your Redis password.
Linux
/etc/redis/redis.conf
notify-keyspace-events
and set its value to Ex
.requirepass foobared
and replace foobared with your
Redis password.systemctl restart redis