kemal-ws-pg-todo-app alternatives and similar shards
Based on the "Examples and funny stuff" category.
Alternatively, view kemal-ws-pg-todo-app alternatives based on common mentions on social networks and blogs.
-
crystal-patterns
:book: Examples of GOF patterns written in Crystal -
crystalized_ruby
Write native Ruby extensions in Crystal -
lattice-core-card-game
An demo app for lattice-core -
crystal-benchmarks-game
Crystal implementations for The Computer Language Benchmarks Game -
kemal-chat
Sample application to demonstrate how easy it is to build realtime applications with Kemal using WebSocket. -
kemal-react-chat
This demonstrates how easy it is to build Realtime Web applications with Kemal. -
crystalworld
RealWorld back-end API implementation ๐ -
fast_sleep
Blazing fast (funny) implementation of sleep for Crystal -
kemal-ws-react-pg-todo-app
Realtime Todo application developed with Kemal, React, ES2015 and PostgreSQL -
kemal-vue-chat
this is experimental repo for Kemal and Vue.js (+ WebSocket) -
Crystal-Maze
A* Path finding for PNG mazes, from Ruby now in Crystal. Using StumpyPNG -
kemal-react-pg-chat
Chat application developed with Kemal, React, ES2015 and PostgreSQL -
kemal_elm_chat
Simple chat server written in Crystal (Kemal) w/ an Elm front end. -
docker-kemal
An example Dockerized Crystal Kemal project -
kemal-ws-todo-app
Realtime Todo application developed with Kemal and Websockets -
kemal-pg-sample
Sample app to demonstrate kemal + postgresql usage -
crystal-mysql-crud-example
Crystal MySQL CRUD Example -
kemal-heroku-example
Kemal is super simple web framework powered Crystal lang. These repo show's how to use with heroku. -
chuck-norris-holy-quotes
An Chuck Norris Holy Quotes written in Crystal -
jihantoro-cr-mysql
An repo for jihantoro.net article -
crystal-website
Creating dynamic websites with Crystal and Kemal
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of kemal-ws-pg-todo-app or a related project?
README
Todo Basic App (Crystal - Kemal - WebSockets - PostgreSQL)
Requirements
- Crystal 0.18.7
- PostgreSQL (I have the v9.5.2)
- Node (I have the v5.11.1)
- NPM (I have the v3.8.6)
*Node and NPM are both optional if you are just going to run the app, but necessary for development since they are needed to run the gulp tasks that build the static files
Installation
Before you can run this program you have to install the packages that it uses. You do that with $ shards install
.
You also need to change the path to the PostgreSQL database in src/db/init_db.cr
and src/notes.cr
# src/db/init_db.cr
require "pg"
# Configure these two variables
DB_NAME = "db_name"
PG_PATH = "postgres://user:[email protected]:5432"
...
# src/notes.cr
require "kemal"
require "json"
require "pg"
require "./app/lib/note"
public_folder "src/public"
COMPOSE = ".compose_psql_db_path"
# Configure the path of the database based on what you did in the src/db/init_db.cr file
DB_PATH = File.file?(COMPOSE) ? File.read(COMPOSE) : "postgres://user:[email protected]:5432/db_name"
...
Once you have installed the dependencies and configured the database path, you need to create the actual database and table for the application. You do that by running $ crystal src/db/init_db.cr
.
Run Project
You can run this program in two ways:
- Compile/build the project using the command line with
$ crystal build src/notes.cr --release
and run the executable$ ./notes
- Run the program with
$ crystal src/notes.cr
(no compilation required)
Once you have run the program, you can open a browser window at localthost:3000 and see the actual app. You can open the app in several browser windows and see how they change in real time via websockets.
Live Demo
You can see and use a live demo of the app here: kemalwspgtodo.herokuapp.com.
*Take in mind that this is just a dummy app written in few hours as a proof of concept.