Giter VIP home page Giter VIP logo

appmp's Introduction

OneStopClick

BACKEND

Server Requirements

  • PHP >= 5.6.4
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Software Requirement

  • PHP Composer
  • XAMPP (Windows)
  • Postgres / MySql

Installation

  • Make sure to install PHP by installing XAMPP then install PHP Composer using installer.

  • Open terminal and go to backend directory

  • execute command composer install

  • after finish then copy file .env-example and rename to .env

  • make sure you update this section accordingly based on your database environment

    # This for Postgres
    DB_CONNECTION=pgsql
    DB_HOST=127.0.0.1
    DB_PORT=5432
    DB_DATABASE=osc
    DB_USERNAME=postgres
    DB_PASSWORD=root
    
    # This for mysql
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=osc
    DB_USERNAME=root
    DB_PASSWORD=
    
  • If using mysql then update app/config/database.php for mysql section. Change strict value to false

  • create the database, named according to the DB_DATABASE

  • run this command on terminal php artisan migrate

  • run php artisan db:seed

  • run php artisan serve --host 0.0.0.0 then open localhost:8000 on the browser

  • to investigate the error log, run this command php artisan tail

FRONTEND

Software Requirement

  • Node.js
  • NPM

Installation

  • open terminal then go to frontend directory
  • run npm install to install dependencies
  • change the url on the file frontend\app\configs\backend.js to your backend url, mostly localhost:8000
  • run npm start to start the frontend
  • open localhost:8020 on the browser
  • If you want to access the frontend using ip then update package.json on the root folder and update start command to look like this
    "scripts": {
        "start": "webpack-dev-server --hot --inline --colors --progress --host 172.19.11.126 --content-base --port 8020"
      },
    
    and make sure you update the IP with your current IP

appmp's People

Contributors

sylva0890 avatar suhendra-ep avatar

Watchers

James Cloos avatar Sofia 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.