No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
.phpstorm.meta.php
README.md
_ide_helper.php
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js

README.md

tinMan

Overview

A small product listing site with categories and an admin CRUD dashboard.

Requirements

  • PHP 7.1.3
  • npm
  • composer

Installation

Clone and change directory

$ git clone https://github.com/emotality/tinman.git && cd tinman

If you don't want to use vuejs and API, checkout api-none

$ git checkout api-none

Copy .env.example to .env and generate a key

$ cp .env.example .env && php artisan key:generate

Edit .env and update database details

$ nano .env

Install packages and compile assets

$ composer install && npm install && npm run dev

While waiting for that, set up a virtual host in a new window (assuming macOS with Apache set up)

$ sudo nano /etc/apache2/extra/httpd-vhosts.conf

Paste this block in and change your tinman path

<VirtualHost *:80>
    DocumentRoot "/path/to/tinman/public"
    ServerName tinman.local
    ServerAlias www.tinman.local
</VirtualHost>

Restart Apache

$ sudo apachectl -k restart

Add a host for tinman.local

$ sudo nano /etc/hosts

# Paste this in
127.0.0.1   tinman.local

Create a new database in utf8mb4 called tinman and migrate then seed it

$ php artisan migrate && php artisan db:seed

Symlink to the public storage where images are kept

$ php artisan storage:link

You can now view the tinMan site!

License

Do whatever the hell you want with it 😉