forked from classroomio/classroomio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add setup tasks for gitpod * chore: updating image name * chore: update image to workspace-full * chore: update all instances of workspace:* to file:* * chore: remove workspaces section on package.json * chore: update supabase command to use npx * chore: update gitpod file to use brew to install supabase cli * revert: all instances of file:* to workspace:* * chore: consolidate tasks into two steps * chore: update main to command * Update 20231115082347_remote_schema.sql * check if column exists before creating * Update .gitpod.yml with Supabase setup and project start commands * docs: add gitpod setup to readme * combine all commands * enable gitpod prebuild * remove gitpod prebuild & move dep setup to init * add prebuilds back to config * complete setup gitpod instructions * docs: add docs for gitpod setup --------- Co-authored-by: Obakeng <60041842+obakeng-develops@users.noreply.github.com>
- Loading branch information
1 parent
781dddd
commit 3ff51d6
Showing
5 changed files
with
111 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
image: gitpod/workspace-full | ||
|
||
tasks: | ||
- name: Setup all projects | ||
init: | | ||
pnpm i && | ||
cd apps/classroomio-com && | ||
cp .env.example .env && | ||
cd ../dashboard && | ||
cp .env.example .env && | ||
cd ../.. && | ||
pnpm supabase start | ||
command: | | ||
SUPABASE_ANON_KEY=$(pnpm supabase status | grep "anon key" | awk '{print $3}' | tr -d '\\n') && | ||
cd apps/dashboard && | ||
sed -i "s/PUBLIC_SUPABASE_ANON_KEY=.*/PUBLIC_SUPABASE_ANON_KEY=$SUPABASE_ANON_KEY/g" .env && | ||
cd ../.. && | ||
pnpm dev | ||
ports: | ||
- port: 3000 | ||
visibility: public | ||
onOpen: open-browser | ||
- port: 5173 | ||
visibility: public | ||
onOpen: open-browser | ||
- port: 5174 | ||
visibility: public | ||
onOpen: open-browser | ||
- port: 54321 | ||
visibility: public | ||
onOpen: ignore | ||
- port: 54323 | ||
visibility: public | ||
onOpen: ignore | ||
- port: 54324 | ||
visibility: public | ||
onOpen: ignore | ||
|
||
github: | ||
prebuilds: | ||
master: true | ||
pullRequests: true | ||
addComment: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import { Callout } from 'nextra/components'; | ||
|
||
# Gitpod Setup | ||
|
||
<Callout emoji="🚨">This page is a work in progress. Help us expand it by contributing!</Callout> | ||
## One Click Setup | ||
|
||
- This will open a fully configured workspace in your browser with all the necessary dependencies already installed. | ||
|
||
- Click the button below to open this project in Gitpod. | ||
|
||
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rotimi-best/classroomio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters