Code Monkey home page Code Monkey logo

indigo-charlie's Introduction

Project Indigo Charlie

This app uses NextJS as the framework which easily allows for API routes and SSR. I used TailwindCSS for styling as its very quick and easy. For testing, I used jest and react-testing-library. You can view this codenamed project at https://indigo-charlie.netlify.app

Alternatively, you can clone this repo and run the following scripts:

  • yarn to install dependencies
  • yarn dev to run the local server and view in http://localhost:3000/
  • yarn test to run the unit and integration tests
  • yarn lint to lint the project

Notes

I would have liked to spend more time on this but my time was limited. Here are some considerations and things I would have liked to do with more time:

  • with more time would have added more content the home page
  • adding SSR to the home page muddied the code a little bit. In an ideal world, we'd SSR the loading state and then client side hydrate
  • for simplicity, I create an API lambda that responds depending on the username/password - you can view it at pages/api/auth.ts

Requirements

  • It should consist of at least two pages - the login and a home page.
  • It should be functional e.g. login should take users to the home page - use 'incard' for username and password.
  • It should Handle errors e.g. if incorrect details were entered or session has expired.
  • The session should be persistent e.g. on page reload the user should not be taken back to the login page. If the session has expired then they should be redirected back to the login page.
  • It would be nice to support SSR.
  • Create 2-3 unit tests.
  • Deploy the app to Netlify.

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.