Giter Site home page Giter Site logo

solvable-app's People

Contributors

michalmytych avatar

Stargazers

 avatar

Watchers

 avatar

solvable-app's Issues

Create Blade + TailwindCSS components library.

Needed components:

  • Container - main page container (responsive)
  • Nav Bar (top but also burger)
  • Form (wrapper for inputs)
  • Page Header
  • Card - container for forms / entity displays / siders
  • Input (email, password, submit, text, text-area, number, calendar, dynamic select-search, range picker)
  • Date display (localized)
  • Paragraph
  • Time passed display (localized)
  • Horizontal separator
  • Steps for progress
  • Skeleton
  • Loader
  • Dynamic search

Make sure Onion-like architecture is implemented properly

  • Eloquent or Query Builder should be called only in repositories. Repositories should be called in Services. Services should be called inside Laravel infrastructure like Controllers, Commands, Jobs, Listeners etc.
  • User data calls such as Auth::id() should be present only in Controllers or sometimes - if there is no other way - in Services.
  • Try not to use Auth facade in business logic. Move facade calls to UserRepository, and inject user repository through interface everywhere you need to get authorized user data.

Create web controllers for Services logic.

Requirements

  • Create Controllers that use logic from services under Controller/Web namespace.
  • Web controllers should return blade views.
  • You don't need to fill blade views content, but files should exist.
  • Follow rules described here.

Guide

  1. Setup app locally (described at README.md).
  2. Make sure tests are passing.
  3. Analyze API controllers and how services logic is used there.
  4. If there's some business logic in controller action that should be placed in related service, move it.
  5. Create web controllers under App\Http\Controllers\Web\... namespace. Use Laravel make command.
  6. Follow naming conventions of resource controllers.
  7. Create blade views files (empty) and return them with necessary data form web controllers actions.
  8. Repeat for all models:
  • User (Auth namespace)
  • Course (Course namespace)
  • Group (Course namespace)
  • Problem (Problem namespace)
  • CodeLanguage (Problem/CodeLanguage namespace)
  • Solution (SolutionController) - may be hard.
  1. In case of spotting some bug - create additional github issue.

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.