Git Product home page Git Product logo

age-test-micro's Introduction

age-test-micro

Installation

cd docker && docker-compose up -d
composer install
npm install && npm run watch
Copy over the .env.example to .env (you may need to set the DB host to localhost).

Running a server

composer start

Running tests

composer test

Summary

I chose to use the following technologies in this project.

  • Slim 4: I chose this over Laravel or another fullstack MVC framework as I didn't need the majority of components, just the DI, request and response lifecycles. I added custom components such as Eloquent for database interaction.

  • Blade and Alpine JS: I chose to use blade as the templating engine as I am more comfortable with this. I initially went down the Vue route but decided to use alpine js as this doesn't require a separate framework with webpack and transpiling. Alpine has a lot of Vue-like methods and is very pleasant to use in HTML.

  • Tailwind CSS: I really like Tailwind and champion it when I can. There is something satisfying and flowing with CSS as an API (unusual concept I know).

  • Docker: This is pretty standard and is used to deploy a database with an entries table already included.

I look forward to discussing and answering any questions regarding my implementation further.

Possible improvements

  • Abstract repeating template code into partials.
  • Improve age calculation logic and maybe introduce a "this happened on the of your birthday facts".
  • Improve asset compilation.
  • Improve the entries view page to include a breakdown of facts under each entry (maybe an accordion).
  • Improved validation server side.
  • Improved error handling for database interactions.

Design

form empty form populated entries table

age-test-micro's People

Contributors

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