GithubHelp home page GithubHelp logo

zstarpak / novapackages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tighten/novapackages

0.0 1.0 0.0 8.58 MB

Home Page: https://novapackages.com

PHP 74.38% Vue 14.05% Shell 0.17% Blade 11.41%

novapackages's Introduction

Nova Packages- Discover new packages. Build amazing things.

Nova Packages

Setting up Passport

  1. php artisan passport:keys
  2. php artisan passport:client --personal

Setting up Scout

  1. Make a new Algolia app
  2. From your Algolia app, copy the Admin API key and ID into your .env. If you see a "Not enough rights to update an object near line:1" error when seeding your database, you're using the Search-Only key—swap it out for the Admin key.
  3. In your Algolia app, create a new index called "packages".
  4. After seeding your database, run php artisan scout:import "App\Package"

Seeding the Database

  1. php artisan db:seed

Setting up GitHub Authentication

  1. Make a new GitHub OAuth application
  2. Set http://novapackages.test/login/github/callback as the Authorized Callback URL
  3. Copy the GitHub app id and secret to GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in the .env file
  4. Create a new Personal Access Token with the public_repo scope enabled
  5. Copy the token to GITHUB_TOKEN in the .env file.

Setting up Slack Test Webhook

  1. Add the SLACK_URL variable to your .env to post to a Slack channel of your choosing.

Note: This webhook is hit when certain events are fired. If you are not testing this webhook specifically, you may want to consider commenting it out to avoid sending unnecessary Slack notifications.

Setting up the Filesystem for Screenshots

  1. Run php artisan storage:link

Testing

Some of the tests in this suite depend on an active internet connection, and will run by default. tests/Feature/RepoTest.php provides coverage for the ReadMe import feature, and tests/Feature/CheckPackageUrlsCommandTest.php provides coverage for the command that periodically validates package urls.

For convenience, these tests have been added to the integration group. If you would like to exlude these tests from running, you may do so by using phpunit's --exclude-group option:

phpunit --exclude-group=integration

novapackages's People

Contributors

mattstauffer avatar marcusmoore avatar cameronscott137 avatar andrewmile avatar tammytee avatar laravel-shift avatar dependabot[bot] avatar ahinkle avatar imanghafoori1 avatar sl0wzer avatar darkboywonder avatar sebdesign avatar andrewminion-luminfire avatar imliam avatar idetinkin avatar ordago avatar peter279k avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.