asciinema hosting web app
Go to file
2017-04-12 14:43:32 +02:00
a2png@551afdb37f Upgrade a2png 2017-04-11 16:10:10 +02:00
app Add doc about recording from Docker image 2017-04-12 13:01:56 +02:00
config Make login links side-effect free 2017-02-21 09:10:37 +00:00
db Don't keep default theme name as empty string 2017-02-15 12:04:35 +00:00
dev Use yada+bidi instead of compojure-api 2017-04-12 14:43:32 +02:00
lib Allow specifying warden strategies per controller 2016-02-06 15:43:39 +01:00
public Improved left/right margin for guru meditation 2014-10-25 21:19:28 +02:00
resources/asciinema Use yada+bidi instead of compojure-api 2017-04-12 14:43:32 +02:00
script Don't try to install pngquant on travis 2017-01-11 15:31:56 +01:00
spec Don't force generate PNG in oembed endpoint 2017-04-11 10:23:46 +00:00
src Default 404 page 2017-04-12 14:43:32 +02:00
test/asciinema Unify FileStore and FileServer 2017-04-12 14:43:31 +02:00
uploads Serve uploads from outside of public dir 2016-04-10 12:29:16 +00:00
vendor Upgrade player 2017-03-13 21:16:12 +01:00
.dockerignore Adding Dockerfile and start_sidekiq.rb needed to create Docker Image with asciinema 2015-10-27 11:39:35 +00:00
.env.example Unicorn with girl_friday on Heroku 2012-06-09 15:25:43 +02:00
.gitignore lein new duct 2017-04-12 14:43:30 +02:00
.gitmodules Add a2png submodule 2017-01-11 14:52:39 +01:00
.rspec.example Example .rspec config file 2012-11-23 20:53:59 +01:00
.ruby-version Use ruby 2.1 in development 2014-01-27 18:04:49 +01:00
.travis.yml Fix travis config 2015-07-18 11:40:28 +00:00
config.ru Load unicorn worker killer only in production 2014-01-29 16:00:24 +01:00
CONTRIBUTING.md Create CONTRIBUTING.md 2016-02-14 17:08:24 +01:00
docker-compose.yml fixes #225 - dockerized problem in the sidekiq-in-container 2016-11-29 19:23:18 +00:00
Dockerfile Symlink player files into a2png dir 2017-01-26 18:45:08 +01:00
Gemfile Update oj to support JSON.generate(..., ascii_only: true) 2016-10-02 08:38:24 +00:00
Gemfile.lock Update oj to support JSON.generate(..., ascii_only: true) 2016-10-02 08:38:24 +00:00
Guardfile Upgrate to Rails 4.1.5 2014-08-30 20:10:49 +02:00
LICENSE Change license to AGPL v3 2014-04-04 18:36:28 +02:00
Procfile Make foreman start sidekiq with proper config file path 2013-09-14 13:12:32 +02:00
project.clj Use yada+bidi instead of compojure-api 2017-04-12 14:43:32 +02:00
Rakefile Upgrate to Rails 4.1.5 2014-08-30 20:10:49 +02:00
README.md lein new duct 2017-04-12 14:43:30 +02:00
sidekiq.ru Add rake task for starting sidekiq web panel 2013-09-14 13:11:20 +02:00
start_sidekiq.rb Adding Dockerfile and start_sidekiq.rb needed to create Docker Image with asciinema 2015-10-27 11:39:35 +00:00

asciinema

FIXME: description

Developing

Setup

When you first clone this repository, run:

lein setup

This will create files for local configuration, and prep your system for the project.

Environment

To begin developing, start with a REPL.

lein repl

Then load the development environment.

user=> (dev)
:loaded

Run go to initiate and start the system.

dev=> (go)
:started

By default this creates a web server at http://localhost:3000.

When you make changes to your source files, use reset to reload any modified files and reset the server.

dev=> (reset)
:reloading (...)
:resumed

Testing

Testing is fastest through the REPL, as you avoid environment startup time.

dev=> (test)
...

But you can also run tests through Leiningen.

lein test

Migrations

Migrations are handled by ragtime. Migration files are stored in the resources/migrations directory, and are applied in alphanumeric order.

To update the database to the latest migration, open the REPL and run:

dev=> (migrate)
Applying 20150815144312-create-users
Applying 20150815145033-create-posts

To rollback the last migration, run:

dev=> (rollback)
Rolling back 20150815145033-create-posts

Note that the system needs to be setup with (init) or (go) before migrations can be applied.

Generators

This project has several generator functions to help you create files.

To create a new endpoint:

dev=> (gen/endpoint "bar")
Creating file src/foo/endpoint/bar.clj
Creating file test/foo/endpoint/bar_test.clj
Creating directory resources/foo/endpoint/bar
nil

To create a new component:

dev=> (gen/component "baz")
Creating file src/foo/component/baz.clj
Creating file test/foo/component/baz_test.clj
nil

To create a new boundary:

dev=> (gen/boundary "quz" foo.component.baz.Baz)
Creating file src/foo/boundary/quz.clj
Creating file test/foo/boundary/quz_test.clj
nil

To create a new SQL migration:

dev=> (gen/sql-migration "create-users")
Creating file resources/foo/migrations/20160519143643-create-users.up.sql
Creating file resources/foo/migrations/20160519143643-create-users.down.sql
nil

Deploying

FIXME: steps to deploy

Copyright © 2017 FIXME