Code Monkey home page Code Monkey logo

it703a1's Introduction

IT703A1

Assignment 1 for IT703

Running & Testing Environment

  • PHP 7.0 & 7.1
  • MySQL 5.7.19
  • Nginx 1.12.1
  • Chrome 66

Libraries Used

  • Backend
    • Laravel
    • Laravel-debugbar
  • Frontend
    • JQuery
    • Bootstrap
    • Font Awesome
    • jQuery BlockUI

How To Deploy It

  • Make sure the running environment is prepared. The web server Nginx is recommended.
  • Create the database and the user, grant necessary privileges to the user to operate the database.
  • Install composer by following the instructions from https://getcomposer.org/doc/00-intro.md#installation-windows.
  • Copy the application to web server publishing folder.
  • Change dir to the application folder in terminal and install necessary packages.
$ composer install
  • Make all files in the project are autoloaded.
$ composer dump-autoload 
  • Open .env file to change the database setup and app url.
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST={database_address}
DB_PORT={database_port}
DB_DATABASE={database}
DB_USERNAME={username}
DB_PASSWORD={password}
  • Migrate data tables.
$ php artisan migrate
  • Create default admin user and fake data.
$ php artisan db:seed 
server {
    listen       8088;
    server_name  localhost;

    root         /Users/PZT/Sites/laravel-appointment/public;

    access_log  /usr/local/var/log/nginx/laravel-appointment.access.log  main;

    location / {
        index  index.html index.htm index.php;
        try_files $uri $uri/ /index.php?$query_string;
        autoindex   on;
        include     /usr/local/etc/nginx/php-fpm;
    }

    error_page  404     /404.html;
    error_page  403     /403.html;
}
  • Start the Nginx.
  • Default admin user is admin/123456, change the password after login. This user can not be deleted.
  • Once the .env has been modified, the web server needs to be restarted to take effect.

it703a1's People

Contributors

flybest avatar

Watchers

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