Giter VIP home page Giter VIP logo

lkw-test's Introduction

Limkokwing test

1. Introduction

Basically the project is divided into two ends, backend and frontend. The backend serves all the APIs calling, and the frontend serves purely the client end.

2. Installation

  • git clone https://github.com/eimihar/lkw-test
  • cd lkw-test

3. Backend Set Up

everything must be done in order

  • cd backend to change to this dir

Composer install (compulsory)

  • composer install

.env setup (compulsory)

  • cp .env.example .env
  • Create a database named campus_db
  • Update database credentials accordingly in .env

generate key (compulsory)

  • php artisan key:generate
  • php artisan config:cache

artisan setup (compulsory)

  • php artisan migrate to migrate the tables
  • php artisan passport:install
  • php artisan db:seed to seed a default oauth2 password grant for frontend app and an admin you can log in with

seeder (optional)

use this seeders to skip adding records

  • php artisan db:seed --class=CoursesSeeder to seed a sample records for courses, semesters and subjects
  • php artisan db:seed --class=StudentsSeeder to seed a sample records of students of existing courses

4. Usage

Serving the backend

From the root directory

cd backend
php artisan serve --port=8081

make sure it's served at port 8081

serving the frontend

For the frontend app you can try the committed build without using the npm at all (if you've not installed one)

From the root directory of the project,

  • cd frontend/dist
  • php -S localhost:8080

testing the app

testing admin
  • on the browser, type http://localhost:8081
  • login with [email protected] with password 12345
testing students
  • select any of the student emails when you're still logged into the admin
  • logout, then login again with the student email with password 12345

Things I have not done (due to time constraints)

  • pdf reports
  • validations for most of them
    • so if you input a wrong password it'll not tell you unless you inspect element.
  • frontend logged in routes auth check
  • loaders for all over the places
  • edit/delete students, course, semester, subject

Some examples

Admin

image image image image image

Student

image image

lkw-test's People

Contributors

eimihar avatar

Stargazers

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