traveloh
Requirements
- Python > 3.0.0
- Python
virtualenv
module - nodejs & npm
- PHP fileinfo and pdo_sqlite extensions enabled
- composer
- laravel requirements info
Installation & configuration
Backend
cd backend/python
python -m venv .
python -m pip install -r requirements.txt
source bin/activate (on Unix)
Scripts\activate (on Windows)
Laravel installation
cd backend/laravel
# Create an empty file in database/database.sqlite
composer install
composer dump-autoload
# Seed tables with php artisan migrate_refresh --seed
php artisan migrate:refresh
php artisan apidoc:generate
Start the server by running php backend/laravel/artisan serve
It runs by default on http://localhost:8000/ and there is a documentation of the available API routes under http://localhots:8000/docs/
Frontend
cd frontend
npm install
ng serve --open