Giter Club home page Giter Club logo

myio's Introduction

Build Status Scrutinizer Code Quality StyleCI Twitter URL

About MyIO

This project started as a project to practice for working on a project in a group. In fact whats more easy then a url shorting service on laravel right? After some time and more and more members joined the project became a bigger thing it even has an own logo for crying out loud lol.

Step 1: install composer

First thing you is installing composer on to your system. You can get composer here. Don't worry it might seem intimidating but its really not.

Step 2: Installing using composer

As i am writing this document you can tryout the development version of MyIO by creating a project with MyIO.

$  composer create-project -sdev johnnymast/myio

Step 3: Stetting up the environment

MyIO gives you the option to copying the .env.example into .env and configure your project that way. You could alternatively use the MyIO installer.

$ php artisan myio:install
Welcome to MyIO. We will get you started quickly by asking you a few questions.

 What environment will you run MyIO in [local]:
 >

 Enable debugging?  [true]:
 >

 Logging level [debug]:
 >

 Application url [http://localhost]:
 >

 Database connection [mysql]:
 > mysql

 Database host [127.0.0.1]:
 >
 
 Database port [3306]:
 >

 Database name [myio]:
 > myio

 Database user [root]:
 > root
 
 Database password [root]:
 > root
 
Have fun ...

$

Step 4: Run your migrations

Use artisan to run your migrations. This will create your database for the website.

-bash-4.2$ php artisan migrate
Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2017_03_14_172117_create_links_table
Migrated: 2017_03_14_184704_create_hits_table
-bash-4.2$
$ php artisan myio:testenv
Welcome to the MyIO testing environment.

Created ./database/database.sqlite
Created .env.testing

Happy testing ...
$

Requirements

The following versions of PHP are supported by this version.

  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • HHVM

Contributing

TODO

Special thanks

We like to thank everyone who contributed to this product. Most of these people are straight from our Slack but you can earn your place on this list as well.

By no special order here are our contributors.

Name Role
Steve Popoola Design and development
Johnny Mast Core development
Rick Bolton Design and Development
Siddharth Design and Development

Contact us

This package is created and maintained by LaravelUK. If you have any questions please feel free to contact us on our Slack space.

We all know making new friends can be hard and especially if your a little bit shy (we have been there) it can be hard to approach people. We have a nice solution for that because you can find us on Twitter as well to hang out and read what we have to say there (You don't have to rush anything).

License

Copyright (c) 2017 LaravelUK

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

myio's People

Contributors

johnnymast avatar rickbolton avatar scrutinizer-auto-fixer avatar siddharthghedia avatar stevepop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

myio's Issues

User Dashboard Link and Styling

There should be a link to take the user page after logging on
The color theme should be same for all pages. The user dashboard page needs to reflect same user experience of the public-facing pages.
Home page points to Github, this needs to be updated.
About us page - is this necessary? If so, we need a dedicated page for this.

[1.0] User email verification is required.

Users should be required to confirm their mailadres while signing up for the website.

The admin dashboard will have an option to switch this off, this has to be kept in mind.

[1.0] Create menu's

  • Users
  • Links
  • Website settings
  • Rules admin for users
  • Enabled / Disable email confirmation.
  • Good old phpinfo() page ??

[1.5] Create API with Dingo

This feature allows MyIO to standout as a project. People who will use this site will have instant access to an API maybe for their mobile phone apps.

PHP unit fails after installation

Expected behavior

All tests should pass.

Actual behavior

3 Errors occur.

1) Tests\Unit\UserRoleTest::can_create_user_as_an_administrator Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found

2) Tests\Unit\UserRoleTest::can_create_normal_user Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Doctrine\DBAL\Driver\PDOSqlite\Driver' not found

Caused by PDOException: SQLSTATE[23000]: Integrity constraint violation: 19 UNIQUE constraint failed: users.email

Steps to reproduce the behavior

  1. Installing by running git clone on the repository.
  2. Composer install
  3. php artisan myio:install - followed through and configured correctly
  4. php artisan migrate
  5. php artisan myio:testenv

All the above steps were followed with no issues.

However when running phpunit the errors mentioned previously occured.

This was done in Laravel Homestead on Windows 10.

composer create-project johnnymast/myio dev-master fails

Expected behavior

Install myio.

Actual behavior

An error occurs:
[InvalidArgumentException] Could not find package johnnymast/myio with stability stable.

Steps to reproduce the behavior

Running composer create-project johnnymast/myio dev-master

This error occurs on Windows 10 and from within Homestead.

Merge Layout Themes

We currently have two layout themes. This should be merged into one so that we will have a consistent look.

Myio:install hangs after running

Expected behavior

Expected to see the installer exiting with a nice message stating install is ready.

Actual behavior

It hangs but has written the .env file like it should.

Steps to reproduce the behavior

Run

$ php artisan myio:install

[1.0] MyIO:install will be broken

Expected behavior

MyIO walk me trough the install process. This will be temporary broken as i lowered the version number on envwriter in composer.json. This is okey it will get back once @davidwoodmansee will fix an issue for me.

The reason is that all fields would be written on 1 line on windows 10.

Actual behavior

Error because function line is not found.

Steps to reproduce the behavior

php artisan myio:install

[1.0] Add Travis & Scrutinizer

This will automate our tests after a commit. This way we can see by the hand on a badge if the code is broken somewhere. This should be done after making the debug environment via the command line.

Cannot create short url while being logged out

This should be fixed on my end.

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (myio.links, CONSTRAINT links_user_id_foreign FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE) (SQL: insert into links (url, hash, user_id, updated_at, created_at) values (http://www.google.com, 857170, 0, 2017-03-15 19:40:49, 2017-03-15 19:40:49))

[1.0] Data too long for column 'url' at row 1

ricardo [9:06 PM]
found another bug. what me to say here or open a bug on github?
ok. the create input field doesn't limit the text. I've pasted 60 paragraphs from lipsum.com and blew up

[9:10]
Illuminate \ Database \ QueryException (22001)
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1 (SQL: insert into links (url, hash, updated_at, created_at) values

[9:10]
needs to be sanitized first

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.