Giter Club home page Giter Club logo

waldo-api's Introduction

Where's Waldo API

This is the api for the Where's Waldo app hosted at https://waldo.rankoliang.com/.

The frontend repository for this application can be found at https://github.com/rankoliang/waldo-frontend/.

Techonologies used: react, rails, nginx, redis, docker, AWS.

How to Play

  • Select a level from the homepage.
  • Click the image where you see one of the characters.
  • Select the character from the dropdown menu
  • Repeat until you have found all of the characters for a level.
  • Submit your score!

Setup

You will need to clone the frontend repository linked again here.

Set up the environment variables at dev.env according to the variables in dev.env.sample in the repository you are running docker-compose from.

You will also need to delete the config/credentials.yml.enc file in the api repository and regenerate your master key by running the commands

bin/dc api sh

to enter the shell of the backend container, followed by

EDITOR="vi" rails credentials:edit

This application uses docker to run.

To set up your development environment, you must have docker and docker-compose installed.

There is a bin/dc script to run docker-compose with the appropriate configurations depending on your environment. There is also a Makefile available where you can run some preselected commands.

With a -p flag, you will run the commands for production and without it, you will run the commands in development mode.

WARNING You will have to change the domain on nginx and the certbot script to run this in production. Certbot may need some additional setup before this repo is ready to be deployed for production.

Building the docker containers

To build the docker containers, run make build or bin/dc build.

Running the development server

To run the docker containers, run make up or bin/dc up -d.

You can visit localhost at port 3000 to open the site.

Running the test suites

  • Frontend
    • bin/dc web yarn test
  • api
    • bin/dc api bundle exec rspec

More commands

See the the Makefile and bin/dc files for more options.

waldo-api's People

Contributors

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