Code Monkey home page Code Monkey logo

test.nz's Introduction

Build Status Total Downloads Latest Stable Version License

About Project

This project allows to view blog posts and also (for admin users) to create/edit/delete it.

Technologies

  • MacOS Mojave
  • PHP 7.1
  • Laravel 5.6
  • MySQL 8.0.11
  • MongoDB 4.0.3
  • React 16.2

Extensions

Main points

  • On starting the app run migration and seeder commands to create DB schemas and admin users
  • Admin dashboard is protected by auth middleware

ReactJS

Using React as a front-end on the main app page (list of blog posts). Added search by title and ordering by creation date functionality.

What else can be done

Add ability for users to register in blog app site (using standard register method). To restrict access to admin panel add Roles table and AdminMiddleware. Why I didn't do this: It wasn't in main task. But I prepared all migrations for it and a middleware (can be sent separately)

Also was thinking to move all front-end to React using Laravel back-end as an API. Why I didn't do this: I prefer to use standard blade in admin functionality and standard back-end validation. It's easier to manage and allows not to run with huge API controllers instead of Laravel resources controllers.

Testing

Created couple tests:

  • Login (to check login functionality)
  • Blogs (checking blog creation, blog url availability)

I could be better in writing tests but I'm ready to learn deeper this point.

test.nz's People

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.