GithubHelp home page GithubHelp logo

take_home_assignment_skeleton's Introduction

A simple test template for take home assignments.

This repo is not candidate ready yet and this Readme is for you (the interviewer) only.
Please see the section Making this candidate ready below for more details.

Please go through the Readme.candidate.md file to see what the candidate will see finally.

Files and directories

  • problem.md: Explanation of the problem.

  • design-choices.md: Explanation of the design choices made by the candidate.

  • docker-basics.md: Some basic understanding of docker, compose and how they are used here.

  • docker-commands.md: Commands to help with the assignment.

  • .env: Environment variables docker-compose picks up from.

  • backend: Backend server code. Exposed as a service in docker-compose.yml

  • client: UI. Exposed as a service in docker-compose.

Making this candidate ready

  • Modify the problem.md file to define your problem.

  • Change any of the other files here (you might want to change docker-compose.yml, it metions the client is optional and only the backend is neccessary).

  • Run the ./build.sh script in your terminal:
    ./build.sh
    This will delete build.sh and try to set up an initial git commit if git is installed in your system.

Docker design in this assignment

We have 2 directories: backend and client.

Both of them have 3 main files:

  • Dockerfile
    Pulls in a base docker image and adds the ability to execute docker.bootstrap.sh and docker.start.sh on top of it.
    Also creates a /code directory and sets it as the default path in the container.

  • docker.bootstrap.sh Empty shell script left for the candidate to fill up. This should reflect what happens when an empty linux based server spins up the first time. It ideally should not contain those commands which they would execute every time they'd deploy. Everything they do here is part of the final state of the image after the build process.

  • docker.start.sh Runs every time the container is created or spins up (pip install, npm install, rails db:migrate, etc). The last command should be a continuously running command. Docker containers will die if it does not run a continuously running process.

take_home_assignment_skeleton's People

Watchers

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