A collaborative storytelling
Novel is powered by Supabase and to run it locally you need to first create a Free account.
- Postgres +v14
- Supabase
- NPM
- Git
First of all you need to clone Novel's repo:
git clone https://github.com/thevahidal/novel.gitGo to supabase.com and create a new project. Name it whatever you want.
Inside you Supabase dashboard go to Settings > Database > Connection string. Copy your connection string. Note that the database password (that you provide while creating the project) is missing, make sure to fill the placeholder with your password.
Now while you're inside Novel's root directory, let's populate our Supabase database with Novel's schema:
psql [YOUR-CONNECTION-STRING] < db/schema.sqlOnce it's finished go ahead and inside Supabase dashboard, Table Editor tab, you should see three tables: stories, parts, and profiles.
Duplicate .env.example file and rename it .env. Note that all variables are empty and we should fill them.
Now inside Supabase dashboard, go to Settings > API > Project URL & Project API keys. There you should copy three things:
- URL -> Copy this for
NEXT_PUBLIC_SUPABASE_URL anon/publicAPI key -> Copy this forNEXT_PUBLIC_SUPABASE_ANON_KEYservice_role/secretAPI key -> Copy this forSUPABASE_SECRET_KEY
That's it. You can leave other variables to stay blank.
Install the dependencies:
npm installAnd finally let's run the development server:
npm run devOpen http://localhost:3000 to see Novel in your browser.

