asciinema hosting web app
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Marcin Kulik 6d15e61860 Kill a2png after 30 sec 7 years ago
a2png@551afdb37f Upgrade a2png 7 years ago
app Add doc about recording from Docker image 7 years ago
config Make login links side-effect free 7 years ago
db Don't keep default theme name as empty string 7 years ago
dev Set :png-gen/:bin-path for dev env 7 years ago
lib Allow specifying warden strategies per controller 9 years ago
public Improved left/right margin for guru meditation 10 years ago
resources/asciinema Allow setting a2png path via A2PNG_BIN_PATH 7 years ago
script Don't try to install pngquant on travis 8 years ago
spec Don't force generate PNG in oembed endpoint 7 years ago
src Kill a2png after 30 sec 7 years ago
test/asciinema Unify FileStore and FileServer 7 years ago
uploads Serve uploads from outside of public dir 8 years ago
vendor Upgrade player 7 years ago
.dockerignore Adding Dockerfile and start_sidekiq.rb needed to create Docker Image with asciinema 9 years ago
.env.example Unicorn with girl_friday on Heroku 12 years ago
.gitignore lein new duct 7 years ago
.gitmodules Add a2png submodule 8 years ago
.rspec.example Example .rspec config file 12 years ago
.ruby-version Use ruby 2.1 in development 11 years ago
.travis.yml Fix travis config 9 years ago
CONTRIBUTING.md Create CONTRIBUTING.md 8 years ago
Dockerfile Symlink player files into a2png dir 8 years ago
Gemfile Update oj to support JSON.generate(..., ascii_only: true) 8 years ago
Gemfile.lock Update oj to support JSON.generate(..., ascii_only: true) 8 years ago
Guardfile Upgrate to Rails 4.1.5 10 years ago
LICENSE Change license to AGPL v3 10 years ago
Procfile Make foreman start sidekiq with proper config file path 11 years ago
README.md lein new duct 7 years ago
Rakefile Upgrate to Rails 4.1.5 10 years ago
config.ru Load unicorn worker killer only in production 11 years ago
docker-compose.yml fixes #225 - dockerized problem in the sidekiq-in-container 8 years ago
project.clj Kill a2png after 30 sec 7 years ago
sidekiq.ru Add rake task for starting sidekiq web panel 11 years ago
start_sidekiq.rb Adding Dockerfile and start_sidekiq.rb needed to create Docker Image with asciinema 9 years ago

README.md

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