Demo step:
- Clone the repository.
git clone https://www.github.com/aufarijaal/online-book-store-backend
- Go to cloned folder
cd online-book-store-backend
- Generate key
php artisan key:genereate
- Set up midtrans keys and the front end url in .env
MIDTRANS_SERVER_KEY="serverkey"
MIDTRANS_CLIENT_KEY="clientkey"
MIDTRANS_IS_PRODUCTION=false
FRONTEND_URL=urlhere # if not specified, it will use http://localhost:3000
- Install dependencies
composer install
- Migrate and seed the database
php artisan migrate --seed
- Generate
ngrok
public url by running. ensurengrok
is installed.
ngrok http http://localhost:8000 # or adjust it to your laravel server port