Install
Development Environment
Set up Nitty Music Social for local development
This article guides you for local development on Nitty Music Social. If you’re only looking to self-host, docker-compose is the recommended method. Docker-Compose is the recommended method and now includes the Temporal stack for workflow processing.
Tested configurations
- macOS
- Linux (Fedora 40)
Naturally you can use these instructions to setup a development environment on any platform, but there may not be much experience in the community to help you with any issues you may encounter.
Warning about Windows
Several users using Windows (and WSL) have reported issues with the setup. This is not well tested as the main developers of the project do not use Windows/WSL for development. If you are using Windows and encounter issues, please do not try to get support, as we aren’t able to support you.
Prerequisite Local Services
- Node.js - for running the code! (version 18+)
- PostgreSQL - or any other SQL database (instructions below suggest Docker)
- Redis - for handling worker queues (instructions below suggest Docker)
- Temporal - runs as a separate stack (Postgres + Elasticsearch + Temporal services). For local development run the Temporal stack via the
postiz-docker-composerepository described in /installation/docker-compose. SetTEMPORAL_ADDRESSin your.envto point at the Temporal service (example below).
We have some messages from users who are using Windows, which should work, but they are not tested well yet.
Installation Instructions
Node.js (version 18+)
A complete guide of how to install Node.js is on the Node.js download page.
PostgreSQL (or any other SQL database) & Redis
You can choose Option A to Option B to install the database.
Option A) Postgres and Redis as Single containers
You can install Docker and run:
docker run -e POSTGRES_USER=root -e POSTGRES_PASSWORD=your_password --name postgres -p 5432:5432 -d postgres
docker run --name redis -p 6379:6379 -d redis
Option B) Postgres and Redis as docker-compose
Download the docker-compose.yaml file here, or grab it from the repository in the next step.
docker compose -f "docker-compose.dev.yaml" up
To run Temporal locally, clone the maintained Docker Compose repository which includes the Temporal stack and follow the instructions in /installation/docker-compose. See /installation/migration for migration steps when moving data to the Temporal-enabled setup.
Build Nitty Music Social
Clone the repository
Set environment variables
Copy the .env.example file to .env and fill in the values
Install the dependencies
Generate the prisma client and run the migrations
Run the project
If everything is running successfully, open http://localhost:4200 in your browser!
If everything is not running - you had errors in the steps above, please head over to our support page.