CJIDNG / POD

The power that powers
0 stars 0 forks source link

POD

The PTCIJ Software that houses all its civic tech platforms.


Getting started

Installation

JS

Install npm packages

npm install

Compile .vue files

npm run dev

Laravel

Please check the official Laravel installation guide for server requirements before you start. Official Documentation

Clone the repository

git clone https://github.com/CJIDNG/POD.git

Switch to the repo folder

cd husk

Install all the dependencies using composer

composer install

Copy the example env file and make the required configuration changes in the .env file

cp .env.example .env

add application key to .env file

php artisan key:generate

Run the database migrations (Set the database connection in .env before migrating)

php artisan migrate --seed

Database seeding

Populate the database with seed data

Run the database seeder and you're done

php artisan db:seed

Note : It's recommended to have a clean database before seeding. You can refresh your migrations at any point to clean the database by running the following command

php artisan migrate:refresh

Multi-Tenancy

POD uses hyn/multi-tenant laravel package

To understand more how husk supports multi tenancy, read the docs

To setup a new tenant(website)

php artisan tenant:install {domain.com}

To add/remove a subapp to tenant(website)

php artisan tenant:subapp {domain.com} {subapp} {--R|remove}

Available Subapps


Documentation

Read about the API Documentation here

Contributing

Sleeves folded, ready to dive in? Read this