Skip to main content

Episode-01: Handling Date/Time - JS and Ruby

Welcome to code samples for episode-01 of Full Stacked!

Episode

JS code directory

Clone the repository (if you haven't already):

git clone https://github.com/goweki/full.stacked.git
  1. Navigate into the js directory:

    cd ./full.stacked/episode01/js
  2. Run code:

    node main.js

RUBY code directory

  1. Check if your development environment has ruby installed

    ruby -v

    It should print the ruby version you are running e.g. ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin21]

    If the above command failed, then you should first install ruby. Use the following Guide

  2. Navigate into the ruby directory:

    cd ./full.stacked/episode01/ruby
  3. Install the TZinfo gem:

    gem install tzinfo
  4. Run code:

    ruby main.rb

TS code directory

  1. Navigate into the ts directory:

    cd ./full.stacked/episode01/ts
  2. Compile transcript code:

    npm install -g typescript
    tsc main.ts
  3. Run the compiled js file

    node main.js