This is a web application designed to use Wonde resources to get class and student information for a given employee.
Valet is my preferred hosting method locally, but you can use whatever your preference is. For the sake of simplicity, I'll write these
instructions to run the project using artisan serve
- Clone the repository
- Create your database
- Copy .env.example to .env
- Put your database credentials in your .env
composer install
php artisan migrate
php artisan key:gen
- Fill in your
SCHOOL_ID
,BEARER_TOKEN
andWONDE_API_URL
in the .env file * yarn install
yarn run dev
php artisan serve
*Your WONDE_API_URL is https://api.wonde.com/v1.0
. Naturally, this would normally be secret (even though it's public knowledge anyway via the api docs). But I'm giving the info away here
for demonstration purposes.
At this point you need to register an account. You can use any email and name that you like, we will connect with our Wonde account afterwards.
Once you log in, you will be met with this homepage:
You will need to grab the ID on an employee via the Wonde API. This would preferrably be an employee that has classes.
In a real life project I would probably have a seperate column handle this link, for example a secure_key column. But for the sake of this project, this is what I went with.
The key you want is the ID in the picture above.
Copy and Paste that into the input field and click save.
Go to your classes.
If you have any questions about any of this at all, please feel free to shoot me an email or give me a call.