Skip to content

aditya-cherukuri/pivot

 
 

Repository files navigation

Pivot: Preferential Voting Tool

PDD status

Installation

Before you start make sure you're running PHP >= 7.1 and have Composer installed.

composer install                # Install PHP dependencies
cp .env.example .env            # Create .env config file
vim .env                        # Update database credentials
php artisan key:generate        # Create application key
php artisan migrate             # Run database migrations
php artisan passport:install    # Create Oauth2 Tokens

Compiling Assets

If you're going to be working in Sass or Vue.js you'll also need to have Node.js installed to use Laravel Mix

npm install                     # Install Node.js dependencies
npm run dev                     # Run all mix tasks

Working With Database Migrations

# Run the database migrations
php artisan migrate

# Rollback all database migrations
php artisan migrate:reset

# Reset and re-run all migrations
php artisan migrate:refresh

# Recreate Oauth2 Tokens if you've wiped out the tables
php artisan passport:install

REST API

Once you have pivot up and running, visit http://yourhostname.here/docs in a web browser to view dynamic Swagger REST API documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 66.6%
  • HTML 17.3%
  • Vue 14.4%
  • Python 1.7%