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
-
Navigate into the js directory:
cd ./full.stacked/episode01/js -
Run code:
node main.js
RUBY code directory
-
Check if your development environment has ruby installed
ruby -vIt 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
-
Navigate into the ruby directory:
cd ./full.stacked/episode01/ruby -
Install the TZinfo gem:
gem install tzinfo -
Run code:
ruby main.rb
TS code directory
-
Navigate into the ts directory:
cd ./full.stacked/episode01/ts -
Compile transcript code:
npm install -g typescript
tsc main.ts -
Run the compiled js file
node main.js