Giter Site home page Giter Site logo

aggie88's Introduction

Aggie88 (Link Tree)

Installation

  1. Make sure you have the following:
    github command line utility https://cli.github.com/
    composer command line utility https://getcomposer.org/
    using php 8.2.7 or above having basic php extensions installed

  2. Clone this repository and cd into it

    git clone [email protected]:klynicol/aggie88.git
    cd aggie88
    
  3. Run composer to install dependencies

    composer install
    
  4. Create a new file .env at the root level of the directory

    vi .env
    

    Paste the following into the new file and change the variables to match your environment. Note: you may want to start a new database on your local mysql server.

    # development / production
    CI_ENVIRONMENT = development
    
    app.baseURL = 'http://test.aggie88'
    app_baseURL = 'http://test_aggie88'
    
    #--------------------------------------------------------------------
    # DATABASE
    #--------------------------------------------------------------------
    
    database.default.hostname = localhost
    database.default.database = aggie
    database.default.username = root
    database.default.password = root
    database.default.DBDriver = MySQLi
    database.default.DBPrefix =
    database.default.port = 3306
    
  5. Run the migrations to create the schema on your database.

    php spark migrate
    
  6. You can either point a webhost (nginx or apache) at the public folder, the following is my example apache config (which includes a re-write for index.php)

    <VirtualHost *:80>
          ServerName test.aggie88
          ServerAlias test.aggie88
          DocumentRoot "/home/markwickline/fiverr/aggie88/public"
          <Directory /home/markwickline/fiverr/aggie88/public>
                   Require all granted
                   Allow from all
                   RewriteEngine On
                   RewriteCond %{REQUEST_FILENAME} !-f
                   RewriteCond %{REQUEST_FILENAME} !-d
                   RewriteRule ^(.*)$ index.php/$1 [L]
          </Directory>
          # Run things on php 8.2
          <FilesMatch ".+\.ph(ar|p|tml)$">
                   SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://php.localhost"
          </FilesMatch>
    </VirtualHost>
    

    Or you can run a temporary php server by running the following in the root directory

    php spark serve
    

aggie88's People

Contributors

klynicol avatar

Watchers

 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.