GithubHelp home page GithubHelp logo

deepakkumarnd / quillpad Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.28 MB

Blogging

Home Page: https://quillpad.co

Ruby 65.86% JavaScript 4.07% CSS 6.02% HTML 23.15% Shell 0.32% Dockerfile 0.57%
blogging blogging-system blogging-platform rails-application rails ruby docker

quillpad's Introduction

README

Quillpad started as my personal hobby blogging project. I was using jekyl for my personal blog before and I was totally satisfied with that. But later I have developed an urge to make a markdown based blogging app myself. I quickly set it up using Rails framework but after doing that I wasn't able to spend enough time to it. But somehow I kept the fire buring and recently I am spending few hours on a weekly basis.

What I wanted to build ?

  1. A simple markdown based blogging app.

  2. Ability to add different kinds of post such as encrypted posts, bookmarks.

  3. Ability to provide content backup on per user basis.

  4. A good experience which is simple for anyone to adapt.

  5. A simple and looking blog.

Build base image

docker build -f Base.dockerfile -t deepakumarnd/quillpad:v1.0 . --force-rm

Build application

docker build -t quillpad:v1.0 . --force-rm

Updates

  1. Migrated the application to rails 6.0.0
  2. Use trix editor

Running the application

$ cd {root directory}

$ bundle

$ bundle exec foreman start

or using docker

$ docker network create back-tier

$ mkdir -p mount/app mount/db

$ docker-compose build

$ docker-compose up

First time running ?

Create database and run migratins

$ docker-compose run app bundle exec rake db:create

$ docker-compose run app bundle exec rake db:migrate

Access the rails console

$ docker-compose run app bundle exec rails c

Goto http://localhost:3000 to view the application running

Running tests

$ docker-compose run app bundle exec rspec spec

$ docker-compose -f docker-compose-test.yaml up --abort-on-container-exit --exit-code-from app ; docker-compose -f docker-compose-test.yaml down

build production image

$ docker build -f production.dockerfile .

quillpad's People

Contributors

deepakkumarnd avatar kumardeepak1 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

quillpad's Issues

Crash on publish or unpublish

14:01:26 web.1 | ActionView::Template::Error (undefined method each' for nil:NilClass): 14:01:26 web.1 | 13: </div> 14:01:26 web.1 | 14: 14:01:26 web.1 | 15: <ul class="list-group list-group-flush comment-list" id="comment-list"> 14:01:26 web.1 | 16: <% @comments.each do |comment| %> 14:01:26 web.1 | 17: <li class="list-group-item" id="comment-<%= comment.id %>"> 14:01:26 web.1 | 18: <%= comment.content %> 14:01:26 web.1 | 19: <%= link_to post_comment_path(@post, comment), class: 'text-danger', method: :delete, remote: true do %> 14:01:26 web.1 | 14:01:26 web.1 | app/views/posts/_comments.html.erb:16 14:01:26 web.1 | app/views/posts/show.html.erb:59 14:01:26 web.1 | app/controllers/posts_controller.rb:71:in publish'

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.