This application allows users to share and schedule their Growth Sessions.
To create / join a Growth Session, the user must login.
To avoid the registration step, this application uses oauth.
- Docker for Mac: https://www.docker.com/products/docker-desktop
- Mutagen: https://mutagen.io/
sh scripts/create.sh
Note The create script populates OAuth credentials through a secure vault. You can skip this through pressing ENTER when prompted.
Note The create script might fail to install
mutagen
if you don't have XCode command line tools. Runxcode-select --install
to install them.
The site should be available at http://127.0.0.1:8008
- PHP 8.2
- Composer
- Node >= 18 LTS
- PNPM
- Mailtrap
# PHP Dependencies
composer install
# Node Dependencies
pnpm i
# Setup env
cp .env.example .env
php artisan key:generate
For ease of local development you can set the database to sqlite:
diff --git a/.env b/.env
index b0303cd..d7983fd 100644
--- a/.env.example
+++ b/.env.example
@@ -6,12 +6,7 @@ APP_URL=http://localhost
LOG_CHANNEL=stack
-DB_CONNECTION=mysql
-DB_HOST=127.0.0.1
-DB_PORT=3306
-DB_DATABASE=laravel
-DB_USERNAME=root
-DB_PASSWORD=
+DB_CONNECTION=sqlite
BROADCAST_DRIVER=log
CACHE_DRIVER=file
Once that is set up:
touch database/database.sqlite
php artisan migrate --seed (To have some pre-made fake mobs in your calendar)
OBS: For production, no seeding is needed, therefore you only need to run
php artisan migrate
Run
php artisan serve
- Go to github, and open your settings page
- Open Developer settings
- Create a new OAuth App
- Set the homepage to
http://localhost:8008
- Set the callback url to
http://localhost:8008/oauth/github/callback
- Save it
- Copy the Client ID to
./.env#GITHUB_CLIENT_ID
and Client Secret to./.env#GITHUB_CLIENT_SECRET
- Go to your Google Developer console
- Select a Project to add OAuth to (or create a new project)
- Configure your Oauth Consent Screen
- Create OAuth Credentials for the project
- Select
Web Application
as the Application Type - Give your application a Name
- Add
http://localhost:8008/oauth/google/callback
as a Redirect URI - Click Create
- Select
- Copy the Client ID to
./.env#GOOGLE_CLIENT_ID
and Client Secret to./.env#GOOGLE_CLIENT_SECRET
- Set
./.env#GOOGLE_REDIRECT_URL
tohttp://localhost:8008/oauth/google/callback
For more information, see: