<img src=“semaphoreci.com/api/v1/ethan/decko/branches/master/shields_badge.svg” /> <img src=“badge.fury.io/rb/decko.svg” alt=“Gem Version” /> <img src=“codeclimate.com/repos/56548cb6fafb98574e013c39/badges/be88db3f72d0fd06ace3/gpa.svg” />
Decko (formerly known as “Wagn”) makes serious web development fun.
Decko creators, or “Sharks”, have used Decko to create open community sites, private knowledge management sites, public proposal submission sites with private back-ends for review, project management systems, wikis, blogs, journals, forums, and more.
Install Decko, open a webpage, and get started. With Decko’s wiki-inspired building blocks, you can collaborate from day one on content, design, and structure create elegant web systems on the fly. And ruby developers can take these creations even further with Decko’s development framework. Decko’s innovative Mods API supports boundless creativity while integrating seamlessly with structures created on the site.
Try it out!
- Ruby
-
version 2.5 or higher
- Bundler
-
version 1.0 or higher
- ImageMagick
- A database engine
-
Either MySQL or PostgreSQL
- A JavaScript runtime
gem install decko
Watch carefully for errors!
decko new MY_DECK
Options:
-f, [--force] # Overwrite files that already exist -p, [--pretend], [--no-pretend] # Run but do not make any changes -q, [--quiet], [--no-quiet] # Suppress status output -s, [--skip], [--no-skip] # Skip files that already exist -m, [--mod-dev], [--no-mod-dev] # Prepare deck for mod development -c, [--core-dev], [--no-core-dev] # Prepare deck for core development -g, [--gem-path=GEM-PATH] # Path to local decko repository (Default, use env DECKO_GEM_PATH) -i, [--interactive], [--no-interactive] # Prompt with dynamic installation options
Edit the config/database.yml file as necessary. More about database configuration at www.decko.org/database_configuration.
Then run
cd MY_DECK decko seed
..to create and seed the database
Options:
-p, --production decko:seed production database (default) -t, --test decko:seed test database -d, --development decko:seed development database -a, --all decko:seed production, test, and development database
To fire up the default, built-in WEBrick server, just run:
decko server
…and point your browser to localhost:3000 (unless otherwise configured).
Options:
-p, [--port=port] # Runs Decko on the specified port - defaults to 3000.
-b, [--binding=IP] # Binds Decko to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'.
-c, [--config=file] # Uses a custom rackup configuration. (default: config.ru)
-d, [--daemon], [--no-daemon] # Runs server as a Daemon.
-e, [--environment=name] # Specifies the environment to run this server under (development/test/production).
-P, [--pid=PID] # Specifies the PID file. (efault: tmp/pids/server.pid)
[--early-hints], [--no-early-hints] # Enables HTTP/2 early hints.
For more information, see decko.org/get_started.
Always back up your database and uploaded files.
From your decko root directory run:
bundle update
Run the following:
decko update
In your decko’s root directory, edit Gemfile, config/application.rb, and config/routes.rb, and script/wagn, replacing “wagn” with “decko”. (Keep the same capitalization pattern.)
From your decko root directory run:
mv script/wagn script/decko
See above.
First check the Wagn/Decko version of your existing site.
-
Create a new deck using steps 1 and 2 from the installation section above.
-
Copy config/database.yml from the old site to the new one.
-
Copy the old local/files contents to the new “files” directory.
-
If you have edited wagn.yml in your old site, make the corresponding changes to the new config/application.rb file.
-
Follow the standard upgrade procedure above.
First update your Wagn to version 1.10 via the old update mechanisms, and then follow the directions above.
If you’re new to Decko, you’ll find lots more info at decko.org
Installation problems? Installation: decko.org/installation
If you’re looking to go deep into the code, start with www.rubydoc.info/gems/card
Thinking about contributing to Decko? here