The backend for the School Application mobile app. See the repository where we're building the mobile app here.
Make sure you have composer installed and ready to go on your local machine, or install Laravel Homestead.
# Clone this repository & cd into the folder
$ git clone [email protected]:svenluijten/sapp-api
$ cd sapp-api
# Install composer dependencies
$ composer install
# Create a new .env file
$ cp .env.example .env
Next, edit your .env
file you just created however you wish. Make sure to generate
new 32-character long keys for both the JWT_SECRET
and the APP_KEY
. You can do
that by executing the following 2 commands:
$ php artisan key:generate
$ php artisan jwt:generate
NOTE:
The JWT secret will generate in
config/jwt.php
, I recommend copying it from that file into your.env
file to make sure the key does not get copied over to your production environment or gets checked into version control.
Once that's done, you can go ahead and run the migrations and seed the database:
$ php artisan migrate:refresh --seed
Your development suite is now set up! Start up a server in your favorite local
development setup (we use Homestead)
or simply boot up a server with the php artisan serve
command.
NOTE:
PHP 7 or higher is required to set up this API. You will not be able to run it on PHP 5.5 or 5.6. We highly recommend setting up Homestead for your own comfort and peace of mind.
The Laravel framework is open-sourced software licensed under the MIT license.