Giter VIP home page Giter VIP logo

erp-system's Introduction

AWITD ERP System

An Erp system with laravel restful api and reactjs.

Features

  1. laravel passport for oauth

Config

  1. Database name => erp
  2. Database username => root
  3. Database password => root

Laravel Config

laravel passport

<?php
/* install passport by typing this command in your terminal*/
composer require lararvel/passport
/* register this provider in your config/app.php */
Laravel\Passport\PassportProvider::class,
/* setup migration */
php artisan migrate
?>

Migration

Create pivot table for user and department

php artisan make:migration user_department_table --create=user_department
php artisan migrate:refresh --seed

Authentication Error Handling

Laravel unauthenticated function will redirect to the login view if the credentials are not correct by default so hav to create custom validation exception. In this function it will simply show unauthenticated 401 response with json format. You can find validation exception at app/Exceptions/Handler.phpA

Create personal client

In this application

php artisan passport:client --personal

use MyApp as the name of personal client

CSRF control with laravel and react

Disable csrf in development and enable on production. You can disable/enable CSRF token in app/Http/Kernal.php. You can get csrf token by csrf_token()

<?php
// u can disable/enable CSRF token at line 35
\App\Http\Middleware\VerifyCsrfToken::class

Daily Progress

You can find every daily progress of the project in dailyprogress folder. In this folder, I save every single pieces of progress related with my workflow, reactjs and laravel stuff. All of the progress are saved with each specific date.

erp-system's People

Contributors

aungthet avatar psaung avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

netg5

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.