Git Product home page Git Product logo

shopify-intern-infra-challenge-2022's Introduction

InvTrack (Shopify 2022 Infrastructure / Site Reliability Engineering Intern Technical Challenge)

This is my submission for the Infrastructure / Site Reliability Engineering Intern Technical Challenge. My extra feature is "Ability to create warehouses/locations and assign inventory to specific locations"

Ruby version

This project uses Ruby 2.7.3. If you don't have Ruby already installed, follow the instructions below

Option 1

  • Install rbenv on your specific system and follow setup
  • Install ruby with rbenv install 2.7.3
  • Set local ruby version with rbenv local 2.7.3

Option 2

System dependencies

(Required)

  • PostgreSQL

Follow the instructions on the Postgres website to download Postgres >= 9

Configuration

Make sure PostgreSQL is started up on your computer.

Note that if your environment paths are not set up correctly, you may have to run bin/rails [COMMAND] instead of the normal rails command.

Database creation

rails db:create

Database initialization

rails db:migrate
# Optional, if you want to seed with fake data 
rails db:seed 

How to run the test suite

Test are located in the test/ folder.

rails t

Deployment instructions

# Only needed on initialization of production database  
rails db:create -e production

rails db:migrate -e production 
rails s -e production 

The app includes

  • rate limiting via Rack::Attack middleware
  • healthcheck endpoint at /healthcheck
  • slugs for warehouses (though still easily viewable via model ID in the backend)
  • Custom logging with timestamps
  • DB Timeouts

All available URLS can be seen with

bin/rails routes

You can view UML diagrams in the docs/ folder for a better understanding of the schema. To generate new diagrams, run

rake diagram:all

Models (and their respective validations) can be seen in the app/models/ folder

shopify-intern-infra-challenge-2022's People

Contributors

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