-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
This guide will walk you through setting up NQ on your computer, step-by-step. Even if you're not a developer, you can follow these instructions to get NQ running.
Time needed: 30 minutes to 2 hours (depending on experience level)
What you'll do:
- Install required software (Go, Node.js, and a database)
- Download NQ
- Set up the backend (the "brain" of NQ)
- Set up the frontend (the mobile app)
- Start using NQ!
Before NQ can run, you need to install three programs. Don't worry - they're all free!
Go powers NQ's backend server.
What to do:
- Visit https://go.dev/dl/
- Download the installer for your operating system:
- Windows: Download the
.msifile - Mac: Download the
.pkgfile - Linux: Download the appropriate tarball
- Windows: Download the
- Run the installer and follow the on-screen instructions
- Accept the default installation options
Verify it worked:
- Open Terminal (Mac/Linux) or Command Prompt (Windows)
- Type:
go version - You should see something like:
go version go1.25.1
Node.js runs the mobile app development server.
What to do:
- Visit https://nodejs.org/
- Download the LTS (Long Term Support) version - this is the recommended, stable version
- Run the installer
- Follow the installation wizard (accept default options)
Verify it worked:
- Open Terminal/Command Prompt
- Type:
node --version - You should see a version number like:
v18.x.xor higher
Neo4j is a special type of database that stores connections between your media (like "this movie is similar to that one").
Choose one option:
This is easier because nothing installs on your computer.
What to do:
- Go to https://neo4j.com/cloud/aura/
- Click "Start Free"
- Create an account (or sign in with Google)
- Click "Create Instance" → Select "Free" tier
-
IMPORTANT: Save the credentials shown! You'll need:
- Connection URI (looks like:
neo4j+s://xxxxx.databases.neo4j.io) - Username (usually
neo4j) - Password (auto-generated)
- Connection URI (looks like:
- Click "Download and Continue" to save these to a text file
- Wait 1-2 minutes for your database to start
Install the database on your computer.
What to do:
- Go to https://neo4j.com/download/
- Download Neo4j Desktop for your operating system
- Install and open Neo4j Desktop
- Create a new project (name it "NQ")
- Add a new "Local DBMS" (database)
- Set a password you'll remember
- Click "Start" to run your database
- Your credentials are:
- Connection URI:
bolt://localhost:7687 - Username:
neo4j - Password: [your chosen password]
- Connection URI:
git clone https://github.com/grillinr/nq.git
cd nqcd backendMac/Linux:
cp .envtemplate .envWindows:
copy .envtemplate .envWhat to do:
- Open the
.envfile - Find these lines:
NEO4J_URI= NEO4J_USERNAME= NEO4J_PASSWORD= NEO4J_DATABASE=
- Fill in your Neo4j credentials from Step 1:
NEO4J_URI=neo4j+s://xxxxx.databases.neo4j.io # Your connection URI from Aura NEO4J_USERNAME=neo4j # Usually just "neo4j" NEO4J_PASSWORD=YourPasswordHere # The password you saved NEO4J_DATABASE=neo4j # Usually just "neo4j"
- Save the file
go run .If you see errors:
- "Failed to connect to Neo4j" → Check your credentials in
.env - "Port 8080 already in use" → Close other programs using that port
While the backend is running:
- Open a web browser
- Go to:
http://localhost:8080 - You should see a page called "GraphQL Playground"
Open a new terminal window:
cd nq-frontendnpm installnpx expo startOption A: On Your Phone (Easiest)
- Install the "Expo Go" app from your phone's app store (it's free)
- Open Expo Go
- Scan the QR code shown in your terminal
- Wait for the app to load (first time takes a minute)
Option B: Android Emulator
- Install Android Studio
- Set up an Android Virtual Device (AVD) - see Android setup guide
- Start the emulator
- In the Expo terminal, press
a
Option C: iOS Simulator (Mac only)
- Install Xcode from the Mac App Store
- In the Expo terminal, press
i - The simulator will open and load the app
Option D: Web Browser (Limited)
- In the Expo terminal, press
w - A browser window opens (note: some features won't work in browser)
To use NQ, you need both running at the same time:
-
Terminal 1: Backend (
cd backend && go run .) -
Terminal 2: Frontend (
cd nq-frontend && npx expo start)
Keep both terminal windows open while using NQ.
-
Connect Your Services
- See the API Data Sources guide
- Get API keys for services you want to use
- Add them to your
.envfile
-
Learn to Use NQ
- Read the User Guide for detailed instructions
- Start syncing your media libraries
- Get personalized recommendations!
-
Explore the Features
- Try the GraphQL Playground at
http://localhost:8080 - Browse your media library in the app
- Discover new content based on your preferences
- Try the GraphQL Playground at