-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the vergepos-api-gateway wiki!
VergePOS is composed of two projects, one for the backend(this repo), and one for the front end. You need to set up both in your machine.
If you have xampp or apache, make sure to use the following folder structure:
- htdocs <- server root folder
- vergepos
- api -
- vergepos-api-gateway - this repo
- app
- vergepos-app - the frontend app repo
- api -
- vergepos
If you are not using xampp or apache, you need to modify a file in the frontend app to change the backend path and the services in the database
Before proceeding to installation, you must install PHP Composer
Also make sure to copy env_example and rename it to .env. Then change the database configuration. Note: if you dont find the env_example, it is probably hidden by your IDE because it has no extension.
Before installing, make sure to clone the submodules `git submodule update --init --recursive
This project uses Laravel framework. Follow the steps for the basic installation:
- composer install
- composer dump-autoload
- composer update
- php artisan key:generate
- php artisan vendor:publish --provider="Barryvdh\Cors\ServiceProvider"
- php artisan jwt:secret
- php artisan config:cache
- php artisan migrate
- php artisan db:seed
- php artisan db:seed --class=ServiceRestore
Make sure to install npm.
The front end app uses VueJS. Follow the steps for the basic installation:
npm install
-
npm run serve
for running the local server
Both frontend and backend have submodules(a git repo inside a git repo). Whenever you need to update the submodule, use the following command:
git pull --recurse-submodules