Skip to content

notsanjaykapoor/notme-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Ruby app built using Roda, Async, Sequel, and Falcon.

The api server supports both rest and graphql endpoints. The websockets server supports a simple terminal interface.

The app also supports a front-end using the Tilt template engine.

Setup

This repo uses ruby 3.3 but should work with any recent ruby version.

Install ruby gems:

bundle install

Copy .env.example to .env.dev. Set DATABASE_URL to a suitable postgres instance. Sign up for an openweather token to use the weather example:

https://openweathermap.org/

Run migrations for dev and tst environments:

RACK_ENV=dev ./bin/db-migrate

RACK_ENV=tst ./bin/db-migrate

Run tests:

./bin/test

Start server on a port of your choice:

./bin/api-server --port 5000

Weather App

Sign up for an openweather api token and update .env.dev.

OPENWEATHER_API_TOKEN="<your_token_here>"

Open https://localhost:5000/weather in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published