Giter VIP home page Giter VIP logo

zinedistro's Introduction

A Zine Distro in a Box

Build Status Test Coverage Code Climate Dependency Status

Deploy

What is it?

A Rails application to facilitate creating a zine distro. It includes a complete application to get started sharing zines online.

Is It Good?

Yes.

Is It "Production Ready™"?

Nope.

Setup instructions

Using the Install Script

Run bin/setup should get everything you need up and running, including:

  • Bundling gems
  • Setting the .env file from the example file
  • Database configuration
  • Database setup and loading seed data

Using Vagrant

Install Vagrant

####Start the virtual machine:

vagrant up

This command will download a virtual machine for Vagrant, install Docker on the virtual machine host, boot the Rails and PostgreSQL containers, link them together, set up the database, seed it with example data and finally, start the rails server.

It can take a while to download, so go find a nice zine to read in the meantime.

###Customize environment variables

See .env.example for variables that need configuring. Copy .env.example to .env to get started:

cp .env.example .env

Next up, add some randomized secrets for Devise and Rails. DEVISE_SECRET_KEY, and SECRET_KEY_BASE are secret keys for the app and should be different long, random strings. Try running rake secret and placing the output in the corresponding values of DEVISE_SECRET_KEY and SECRET_KEY_BASE. For example:

echo "DEVISE_SECRET_KEY=`rake secret`" >> .env
echo "SECRET_KEY_BASE=`rake secret`" >> .env

For the values of CARRIERWAVE_AWS_ACCESS_KEY_ID and CARRIERWAVE_AWS_SECRET_ACCESS_KEY, you must enter your AWS credentials for an S3 bucket you wish to use to store PDFs and associated cover images.

For more information, see the AWS page on security credentials.

If you wish to use another provider to store files, it should be possible, I just have not tried it yet. If you get it working or would like to ask a question, please open an issue.

User Setup

Once the application dependencies are taken care of, create your first user:

vagrant ssh
cd /home/app/zinedistro
./bin/console

In the Rails console that appears, type something similar to this while substituting your own email address and password:

User.create!(email: '[email protected]',
             password: 'password',
             password_confirmation: 'password')

Contributing

Coming soon. Currently, Zinedistro is not ready for contributions. If you have a question or or an idea, please file an issue.

License

MIT licensed.

See license for more information.

zinedistro's People

Contributors

faun avatar samnang avatar testocat-8618eb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.