Skip to content

rambocoder/colosimo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colosimo is a Chicago Boss sample project demonstrating:

  • basic templating
  • user registration/login form with email validation
  • usage of controller's before_
  • protected pages
  • protected pages redirect url with a querystring
  • starting bcrypt using priv/init/colosimo_03_brcrypt.erl module
  • password encryption with bcrypt (using erlang-bcrypt)

Before starting Colosimo, make sure to open ../ChicagoBoss/rebar.config and add bcrypt to the list of deps:

{bcrypt, "0.5.0", {git, "https://github.com/smarkets/erlang-bcrypt.git", {tag, "0.5.0"}}}

Once brcypt is added to ChicagoBoss rebar.config, in ChicagoBoss directory execute:

rebar get-deps
rebar compile

That will instruct rebar to download bcrypt into ChicagoBoss deps directory and compile it.

After bcrypt is installed, switch back into colosimo directory and execute:

./init-dev.sh

Then visit http://localhost:8001/ and create a login.

Unlike the upstream of Colosimo, this fork does not use PostgreSQL, instead all data is in memory and during the cold start or restarts, account information gets erased.

About

Chicago Boss sample app with PostgreSQL db shard and user registration with bcrypt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 82.5%
  • Shell 11.3%
  • JavaScript 6.2%