GithubHelp home page GithubHelp logo

voltra / slim-vue-app Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 3.0 31.27 MB

A ready-to-start project (w/ demos) for applications written using Slim 4, Twig 3 and Vue 2

License: MIT License

Shell 0.45% PHP 43.97% JavaScript 46.03% CSS 2.50% Vue 0.78% SCSS 2.88% Twig 3.38%
slim vue twig starter-project javascript scss sass boilerplate jest phpunit

slim-vue-app's Issues

API Scaffolding

Add the API scaffolding that allows for decoupled/async front-end (e.g. dynamic 2FA)

SSR

Add the ability to do SSR for Vue

Jobs

Add the ability to queue jobs

Add auth scaffold

  • create routes
  • create views
  • create feature middlewares (to enable/disable features)

Error handling refactor

Some places use very "weird" logic to go around error handling, replace these with exceptions

Event-driven

Add the ability to trigger/respond to events easily (e.g. on User registration, send an email)

Emailing

Add the ability to write/send emails

Error handler middleware

Add a way to handle generic exceptions (e.g. CsrfTokenMismatch or Invalid2FA) on a per type basis

Docs

Add an actual documentation that explains every feature available

Rewrite the README

Everything will change, the README should still reflect what is in this starter project

Add redirect capability

  • Allow routes to accept a redirect URI (avoids malicious redirects)
  • Integrate in scaffoldings

Setup Error

I can only assume that golang is also required as I get this error:

npm run setup

> [email protected] setup /var/www/slim-vue
> npm run setupCLI && npm run setupJS && npm run setupPHP && npm run setupRoutes


> [email protected] setupCLI /var/www/slim-vue
> go get -u github.com/turnitin/dbmate

sh: 1: go: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] setupCLI: `go get -u github.com/turnitin/dbmate`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] setupCLI script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/darkalchemy/.npm/_logs/2019-01-21T11_08_22_065Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: `npm run setupCLI && npm run setupJS && npm run setupPHP && npm run setupRoutes`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

So other than fetching something is golang needed for anything else in your code?

Revoke sessions on password change

session-driven invalidation :

  • store the hash of the password in the session
  • on auth, check the hash from the session is identical to the one in the DB
    • it is โ†’ can continue
    • it is not โ†’ force log out

Add 2FA

  • 2FA action
  • 2FA scaffold
  • wired with auth
  • middleware for "requires 2FA"

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.