Coder Social home page Coder Social logo

aihr-calc's Introduction

Aihr Calculator

The project allows to estimate, how many hours per week you need to spend to finish selected courses within selected time.

Note!
Unfortunately, I was not able to create docker-compose for a client part, nginx didn't want to proxy requests to backend. I spent two evening on it, so it feels like not the best place for such efforts (I'm not Angular expert for now).

Get Started

  1. docker-compose -f docker-compose-all.yml up -d will run BE and populate initial data in localstack
  2. cd client && npm i
  3. npm run start will run project with proxy and run http://localhost:4200
  4. Now you can play with it.

Warning!
If you don't see any data in dynamodb (or backend), try to chmod +x backend/localstack/setup-localstack.sh

How to run Tests

  1. docker-compose up -d will run localstack (no in-memory db option here)
  2. Run all the tests from solution.

Everything has been tested with Safari browser only.

Assumptions

Topic Comment
Client Authorization It's easy to implement with AWS SSM and JWT token but time consuming
Study Week Considered to (24 * 7) week length
History Update History will be updated, when the client asks for estimate (current client only)
Weekend or Holidays Not considered within estimation process
Pagination Skipped, it's difficult to implement on FE for me now (just time related)
History Limit No limit is here
Past Days Not available for user (but it could be, if use started study before and wants to know when he will finish it)

Possible improvements

  • Better to have minimum delta between StartDate and EndDate calculated based on selected courses and their duration
  • State implementation for storing selected courses in case of page reload

Backend overwiew

  • Persistence layer: DynamodDB
  • Cloud Provider: Localstack
  • Testing: Integration & UnitTests
  • Initial Data: loading by backend/localstack/setup-localstack.sh

Screenshot:

Screenshot of FE UI

aihr-calc's People

Watchers

Aleksey Fishchev 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.