Oluko is an AI-powered study companion that helps university students turn their own course materials (PDFs, slides, handouts, class notes) into a complete, personalized study system. Students upload their materials, and Oluko generates topic summaries, a study plan, flashcards, quizzes, and an AI teacher they can chat with.
Once you've cloned the repo, follow these steps to start the development server:
- Install dependencies:
pnpm install- Start the development server:
pnpm devTo start the local Supabase server, make sure you have Docker installed and run the following command:
pnpx supabase startThe supabase url and anon key will be displayed in the terminal.
-
Stop your local supabase server
Note: Make sure your local database is stopped before running this command.
pnpx supabase stop
-
Edit the schema in the
supabase/schema/directory. This can be by editing an existing sql file or creating a new one for a new table e.gsupabase/schema/photos.sql.Note: Make sure to add the enums to the
supabase/schema/enums.sqlfile and the seeds to thesupabase/seeds/directory. -
If you created a new sql file, add it to the
supabase/config.tomlfile.Note: Make sure to add the new schema to the
schema_pathsarray, they are run from top to bottom, so make sure the new schema is after the enums and any other dependent schemas. -
Create a new migration
pnpx supabase db diff -f "name-of-migration"This will create a new migration file in the
supabase/migrations/directory. -
Apply the migrations
To apply the migrations, run the following command:
pnpx supabase start && pnpx supabase migration up
-
Login to supabase
supabase login
-
Link your remote project
supabase link
-
Deploy the changes
supabase db push