Coder Social home page Coder Social logo

simple_crud's Introduction

Simple CRUD

A simple Laravel App to simulate simple process of storing values submitted from form in to txt file

Demo hosted on Heroku

Installation:

  1. Local environment (using php artisan serve) Assuming you are using Ubuntu 16.04, there are several steps you should do :

    • Open your terminal, run as super user by typing :

      sudo su

    • Change the current directory to /var/www/html/

      cd /var/www/html/

    • execute git clone command

      git clone https://github.com/kennykarnama/simple_crud.git

    • Wait after it finishes.

    • change the current directory to simple_crud dir

      cd simple_crud

    • Run composer install

    • Don't forget to change if .env.example to .env if necessary

    • Run php artisan key:generate

    • Finally, run php artisan serve

    • Open your browser, and go to localhost:8000

  2. Local environment (using static access)

    If you don't want to run composer install and various installation from previous steps, simply repeat repeat the first four steps in previous step, and open your browser, type localhost/simple_crud/public. Remember to change folder permission of simple_crud directory, by run command sudo chmod -R 777 simple_crud

How to use

From demo page, basically this app provides functionalities :

  • store data submitted from form into txt with format name,email,date_of_birth (yyyy-mm-dd),address

  • display data that has been submitted

Each of data submitted will be stored in txt file in comma separated values. So you are expected not to include any additionals comma delimiter in each form fields you'll fill.

for example : surabaya Jawa Timur (correct) surabaya, Jawa Timur (incorrect)

Just watch this video for the tutorial

Testing

Although it is a simple project, but it is equiped with unit testing using php-unit and integration with scrutinizer-ci.

  • To run php-unit, simply run ./vendor/bin/phpunit in simple_crud folder.
  • For scrutinizer-ci, you could see the result here

simple_crud's People

Contributors

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