Skip to content

grahen/coderdojowebstorage

 
 

Repository files navigation

coderdojowebstorage

Minimal app to upload/edit html and image files.

Developed to be used by CoderDojo Växjö to enable the kids to upload their own home page and show of their projects.

Preparations

If using osx

First, install the latest ruby using rvm according to these instructions:

https://rvm.io/

Then,

brew install libmagic

If using Debian or such.

Install rvm and ruby as stated above.

Then,

sudo apt-get install libmagic-dev

Create config

cp config.example.yml config.yml

Replace values in config.yml with different values. Use for example random.org for some random data.

How to run

Compile

bundle install

Start the server

rackup

Initial setup

Register the first user

Browse to http://localhost:9292/

Register a user using the webapp.

Make the first user admin

irb
> require './coderdojowebstorage'
> u = User.first
> u.auth_level = 10
> u.save

About

minimal app to upload/edit html and image files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • CSS 6.2%
  • Ruby 0.5%