https://github.com/afcms/malley
https://github.com/afcms/malley
react studies supabase tailwindcss typescript vite
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/afcms/malley
- Owner: AFCMS
- License: gpl-3.0
- Created: 2025-01-31T09:49:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-08T08:09:51.000Z (about 1 year ago)
- Last Synced: 2025-04-08T08:44:14.802Z (about 1 year ago)
- Topics: react, studies, supabase, tailwindcss, typescript, vite
- Language: PLpgSQL
- Homepage: https://malley.vercel.app
- Size: 585 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Malley
Malley is a X-like social media platform.
## Tech Stack









## Documentation
### Prerequisites
- [NodeJS](https://nodejs.org)
- [PNPM](https://pnpm.io)
- [Deno](https://deno.com)
- [Docker](https://www.docker.com) or [Podman](https://podman.io)
> [!NOTE]
> For **Docker Desktop** users, you need to enable `Expose deamon on tcp://localhost:2375 without TLS` in the Docker settings.
>
> More informations [here](https://supabase.com/docs/guides/local-development/cli/getting-started?queryGroups=platform&platform=windows#running-supabase-locally).
### Run project
You can use the **Supabase CLI** (recommended) or you own cloud instance of Supabase for development.
```sh
pnpm install
pnpm run supabase start
```
Populate the `.env.local` file with data from the `supabase start` output.
```properties
VITE_SUPABASE_URL="http://127.0.0.1:54321"
VITE_SUPABASE_ANON_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
VITE_GOOGLE_SITE_VERIFICATION=""
```
```sh
pnpm run dev
# Afterwards you may want to stop the supabase containers
pnpm run supabase stop
```
### Create Migrations
Database documentation is [here](/supabase/README.md).
Modify the database from Supabase Studio and export the DB diff to a file, then refine it (formating, comments, etc):
```sh
pnpm run --silent supabase db diff --schema public > my_file.sql
```
Create a new migration file in `supabase/migrations` and fill the given file with the content of the diff file:
```sh
pnpm run supabase migration new migration_name
```
Update the TypeScript definitions:
```sh
pnpm run --silent supabase gen types typescript --local > src/contexts/supabase/database.d.ts
```
Reset DB (or apply the migration if possible):
```sh
pnpm run supabase db reset
# or if your local edits can be reapplied without errors
pnpm run supabase migration up
```
---

Made with ❤️ by:
- [AFCMS](https://github.com/AFCMS)
- [Roceann](https://github.com/Roceann)
- [AKArien0](https://github.com/AKArien0)
- [weyrito](https://github.com/weyrito)
During our studies at [Ecole Hexagone](https://www.ecole-hexagone.com) 🇫🇷