GithubHelp home page GithubHelp logo

ronypony's Introduction

Ronypony

Website Ronypony

Prerequisites

*  Webserver(apache) >= 2.4
*  PHP >=7.1.3,
*  Laravel = 5.7.*
*  Mysql >= 8.0
*  Composer >= 1.5.2
*  Redis >= 3.0
*  NodeJS >= 8.9.1
*  NPM >= 5.5.1
*  Yarn >= 1.3.2
*  git >= 2.7.4

PHP extensions

*  ext-bcmath
*  ext-zip

Installation

  • run sudo a2enmod rewrite
  • run sudo service apache2 restart
  • run git clone https://github.com/samayamnag/ronypony.git <projectname> to clone the repository
  • run cd <projectname>
  • run sudo apt-get install php7.x-bcmath && apt-get install php7.x-zip
  • run cp .env.example .env or copy .env.example .env
  • run chmod 400 .env && chown -R www-data:www-data .env to secure from public access
  • run composer install --no-interaction --prefer-dist --optimize-autoloader
  • Create a database and configure database(MongoDB also) in .env
  • Give permissions to storage/logs and bootstrap/cache folders
  • run php artisan key:generate
  • run php artisan migrate
  • run php artisan storage:link
  • Create virtual host for the project something like http://ronypony.local/ (optional)

JWT token

  • run php artisan jwt:secret to generate secret key

Database seeding

  • run composer dump-autoload to load all Seeder classes
  • run php artisan db:seed

Testing

  • make sure sqlite extension installed and enabled
  • run cp .env.testing.example .env.testing
  • run php artisan key:generate --env=testing to generete app key for test cases
  • run str_random(32) in tinker and assign value in JWT_SECRET in .env.testing
  • run php artisan config:clear
  • vendor\bin\phpunit to run test cases
  • vendor\bin\phpunit --filter <tes_name> to run specific test case

Webmix

  • Run all Mix tasks npm run dev
  • Run all Mix tasks and minify output npm run production

Clear

  • php artisan config:clear
  • php artisan clear-compiled
  • php artisan optimize
  • php artisan config:cache

ronypony's People

Contributors

jeevad avatar nagjanaonline avatar samayamnag avatar

Watchers

 avatar  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.