Documentation: https://developers.google.com/identity/oauth2/web/guides/get-google-api-clientid
- Go to the Google Console: https://console.cloud.google.com/
- Create a new project: https://console.cloud.google.com/projectcreate
- Go to https://console.cloud.google.com/apis/credentials
- Click on "Create Credentials" and select "OAuth client ID".
- Select "Web application" as the application type.
- Add the following authorized redirect URIs:
http://localhost:8000/auth/google/callbackhttps://your-domain.com/auth/google/callback
- Click "Create" and copy the Client ID and Client Secret.
Documentation: https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app
- Go to the your Developer settings: https://github.com/settings/developers
- Click on "New OAuth App".
- Fill in the application name, homepage URL, and description.
- Set the authorization callback URL to:
http://localhost:8000/auth/github/callbackhttps://your-domain.com/auth/github/callback
- Click "Register application" and copy the Client ID and Client Secret.
Copy the .env.example file to .env and set your environment variables accordingly.
Then run the following command to start the PHP built-in server:
php artisan serveCopy the .env.example file to .env and set your environment variables accordingly.
Then run the following command to start the Laravel Octane server:
php artisan octane:frankenphpCopy the .env.example file to .env and set your environment variables accordingly.
Then run the following command to build and run the Docker container:
docker build --tag wow-be --label "project=wow-be" .
docker run --publish 8000:8000 --env-file .env --detach wow-beSet your environment variables accordingly in the .env.example file.
Then run the following command to start the Docker containers:
docker compose up --build --force-recreate --detachTip
If you want to run it with a PostgreSQL database, you can use the docker-compose-local.yml file:
docker compose -f docker-compose-local.yml up --build --force-recreate --detachphp artisan migrate
php artisan optimizeIf you need some sample data, you can run:
php artisan db:seed