Giter Club home page Giter Club logo

maze-challenge-in-rubyonrails's Introduction

What is it?

This project is a maze challenge made in Rails 5 running on a docker container. The project runs on HTTP Port 3000.

Generated maze board

What is the project for?

The project was made to help computer programmers applying for positions in companies, during the interview process. However, I strongly recommend that you DO NOT COPY THIS WHOLE PROJECT, but try to use it as reference for your solution. I suggest it to you because it is important to show your recruter how you solve problems in a smart way without doing "copy and paste".

It is worth noting that there are some bugs in this project, so feel free to fix these or solve the maze with another solution.

How to use?

After you've clone this project, follow these steps:

  • open a terminal session in your terminal tool (Iterm, Terminal, Putty)
  • go to the folder where you cloned the project (Ex.: cd cd maze-challenger-in-rubyonrails)
  • type the command: make run

This command will run the container and open a session inside the container. If all goes well, the rails server is up * Listening on tcp://0.0.0.0:3000

Open your browser and type http://localhost:3000. When the page load finishes, you must fill width and height fields and press the "Generate" button.

General Marks

  • If you don't have docker installed but you have a rails ecosystem (bundler, rvm, etc), you can run the project following these steps:
    • open a terminal (Terminal, iTerm, etc) session
    • go to the folder where the project is cd maze-challenger-in-rubyonrails
    • type the following commands:
      bundle install
      rake db:setup
      rake db:migrate
      rails s
      
  • When you finish to work with this project, you can destroy it running the command make destroy
  • My solution was inspired on https://rosettacode.org/wiki/Maze_generation#Ruby and https://rosettacode.org/wiki/Maze_solving#Ruby

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.