API pentru aplicatia de raportare integrata a DSU
Impreuna cu API-ul din acest repo, se va instala si aplicatia de administrare a API-ului DSU-report-api-admin
-
install Vagrant
-
install VirtualBox
-
add these lines to your local
hosts
file:- NOTE: Windows users -> local
hosts
file is located here C:\Windows\System32\drivers\etc\hosts; deactivate your antivirus during editing hosts file.
- NOTE: Windows users -> local
192.168.13.37 dsu.civictech.local
192.168.13.37 dsu-admin.civictech.local
- create local directory which will contain all project repos: [local project directory]
- git clone in [local project directory] from the repository DSU-report-api
- NOTE: Git Workflow -> Wiki Doc
- git clone in [local project directory] from the repository DSU-report-api-admin
- go to [local project directory]/DSU-reportapp-api/automation/provision/
- run the vm provisioning:
vagrant up
- SSH into local VM (from [local project directory]/DSU-reportapp-api/automation/provision/)
vagrant ssh
- Create .env file for DSU-reportapp-api
$ cd /vagrant/DSU-reportapp-api/api/
$ cp .env.example .env
- Create .env file for DSU-reportapp-api-admin
$ cd /vagrant/DSU-reportapp-api-admin/api-man/
$ cp .env.example .env
$ cd /vagrant/DSU-reportapp-api/api/
$ composer install
$ cd /vagrant/DSU-reportapp-api-admin/api-man/
$ composer install
$ cd /vagrant/DSU-reportapp-api-admin/api-man/
$ php artisan key:generate
$ cd /vagrant/DSU-reportapp-api/api/
$ php artisan key:generate
cd /vagrant/DSU-reportapp-api-admin/api-man/
$ php artisan migrate
$ php artisan db:seed
- browse DSU-reportapp-api and accept certificate warning (in chrome type: badidea)
- Custom Lumen landing page should be displayed
http://dsu.civictech.local
- browse DSU-reportapp-api-admin and accept certificate warning (in chrome type: badidea)
- Should redirect to login screen http://dsu-admin.civictech.local/admin/login
- Use test credentials from DSU-reportapp-api-admin/api-man/database/seeds/UsersTableSeeder.php
http://dsu-admin.civictech.local