Skip to content

OpenSourceSarajevo/rjecnik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rječnik

Prerequisites

Getting Started

  1. Navigate to rjecnik-web:
cd rjecnik-web
  1. Install npm packages:
npm install
  1. Configure the application:
cp .env.example .env
  1. Run the application:
npm run dev

Open http://localhost:3000 with your browser to see the result.

Running Supabase Locally

  1. Start docker desktop

  2. Start the supabase container:

supabase start
  1. From the console output copy the values of API URL and anon key for NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY

  2. Stop the container

supabase stop
supabase stop --no-backup

Creating migrations

  1. To create a new migration for the supabase database run:
supabase migration new <migration_name>
  1. Navigate to supabase/migrations, find your new migration file and write you SQL.

  2. Apply the new migration by restarting the supabase container