Code Monkey home page Code Monkey logo

codetest's Introduction

Code Test

This is a pretty basic Rails application with a couple of models and a handful of controllers. It requires Ruby, Rails, and Sqlite.

This simple app allows Users (employees at media companies) to manage their Schedulings (scheduled media content).

Setting up the application

  1. Setup Ruby in your machine (see .ruby-version file)
  2. Setup everything with bin/setup (see the script for details)
  3. Run the test suite with rake
  4. Start the app with rails server
  5. Visit http://0.0.0.0:3000 (login as any user in tests/fixtures/users.yml)

Currently, users can authenticate in the UI by using a regular form-based authentication mechanism (we store passwords securely). However, in the API, we need to allow users to authenticate using HTTP digest authentication.

Requirements

  • Users will be able to access API resources by providing their credentials using digest authentication.
  • Users will continue to be able to access the UI using the same mechanism as today.
  • The solution needs to provide a way for pre-existing and new users to get access to the API.
  • The password digest needs to stay updated when the password changes.
  • Test coverage is desired.

Note that the purpose of this issue is not to implement an HTTP Digest library. You can use any existing implementation.

Feel free to make any changes to the app: updating or installing gems, changing the testing framework

codetest's People

Contributors

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