https://github.com/unicodeveloper/starwazapp
Starwarz app for the "The Ultimate Guide to Deploying Your PHP Applications" post.
https://github.com/unicodeveloper/starwazapp
Last synced: 8 months ago
JSON representation
Starwarz app for the "The Ultimate Guide to Deploying Your PHP Applications" post.
- Host: GitHub
- URL: https://github.com/unicodeveloper/starwazapp
- Owner: unicodeveloper
- Created: 2017-05-03T09:50:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T06:36:41.000Z (over 8 years ago)
- Last Synced: 2025-03-31T11:51:08.273Z (10 months ago)
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StarWars Basic PHP WebApp
In order to run this app, you need to have `composer` and `php` installed.
You also need to set the ClientSecret, ClientId, Domain and Callback URL for your Auth0 app as environment variables with the following names respectively: `AUTH0_CLIENT_SECRET`, `AUTH0_CLIENT_ID`, `AUTH0_DOMAIN` and `AUTH0_CALLBACK_URL`.
Clone this project, then rename `.env.example` to `.env` and fill them with right values.
````bash
# .env file
AUTH0_CLIENT_SECRET=myCoolSecret
AUTH0_CLIENT_ID=myCoolClientId
AUTH0_DOMAIN=yourDomain.auth0.com
AUTH0_CALLBACK_URL=http://your.url/
````
Once you've set those 4 environment variables, just run the following to get the app started:
````bash
composer install
php -S localhost:3000
````
Now, try calling [http://localhost:3000/](http://localhost:3000/)