Coder Social home page Coder Social logo

lukeclancy / toonrail Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7.68 MB

Pet project to learn ruby on rails. The project idea is to create a website for MidCity along the lines of other web comic websites. MidCity is a future pet project I have thought about every now and again. Once the website functionality is acceptable, I plan to create a customizable site usable by any web comic creator.

License: GNU General Public License v3.0

Ruby 76.42% JavaScript 3.48% CoffeeScript 2.51% HTML 8.80% Shell 0.06% SCSS 2.20% Haml 6.54%
rails test comics webcomics indevelopment

toonrail's Introduction

TOONRAIL

Pet project to learn ruby on rails. The project idea is to create a website for MidCity along the lines of other web comic websites. MidCity is a future pet project I have thought about every now and again. Once the website functionality is acceptable, I plan to create a customizable site usable by any web comic creator with easy setup.

PICTURES

main-page write-coms coms2

README

If there are any extra steps that had to be taken which I forgot about, or mistakes made, please edit this README.

Project Info:

  • installation / setup

    1. install rails
    2. run 'cat Gemfile | grep "apt"' in the root directory, and install the noted system files
    3. run 'bundle install' within the root directory
    4. setup the database as noted BELOW in the database creation section
    5. run 'rails server' and go to the local url.
    6. create a user.
    7. in psql, change the users role to 'admin' (UPDATE users SET role = 'admin'), no this is not ideal and I would like to put it in the credentials instead soon.
    8. is it over? Its over! Yay!
  • Ruby version: 2.7

  • System dependencies: look in the Gemfile for gems and system files

  • Configuration: Public configuration not yet set, passwords etc currently utilizing master.key

  • Database creation / initialization:

    1. if you are NOT using postgres, go install needed packages and gems for yourdatabase, and then modify config/database.yml accordingly
    2. follow the installation / setup section ABOVE (yes up there) until you hit database creation.
    3. log onto postgres: run 'sudo -u postgres psql'
    4. create the databases:
      • 'CREATE DATABASE toonrail_dev;'
      • 'CREATE DATABASE toonrail_tst;'
      • 'CREATE DATABASE toonrail_prod;'
    5. sidenotes:
      • '\l' will list the databases
      • '\connect toonrail_dev' connects to the development database so you can write sql on it (aka 'SELECT * FROM pages;')
      • '\d' will list the diffrent tables in a database
    6. set a password to connect to postgres
      1. create a postgres password
      2. get out of psql
      3. in the root directory run 'EDITOR="atom --wait" bin/rails credentials:edit', more info
        • set the 'database_default_password' enviroment variable used in config/database.yml. All passwords, keys, and localized configuration should be set using credentials:edit
    7. autopopulate schema:
      1. From the root directory run 'rails db:schema:load'
      2. you can check that the production database was properly set up in psql, if you like
  • How to run the test suite: run 'rspec' from the project root. Read more about rspec

  • Services (job queues, cache servers, search engines, etc.): will connect to google, twitter, disqus, discord and facebook for ease of signup

  • Deployment instructions: we are not there yet, but probably heroku

  • Notable technologies developers may encounter

    1. acts as commentable streamlines our commenting backend code in controllers and models
    2. acts as voteable streamlines how we vote on comments and pages
    3. haml simplifies our view code dramatically
    4. devise handles our authentication logic
    5. summernote is our user friendly front end WYSIWYG editor
    6. simpleform can be helpful in quickly writing forms
    7. carrierwave handles file uploads and downloads (especially with pictures from summernote)
    8. rspec-rails and factory-bot-rails are our testing framework
    9. sass (more), bootstrap (more), jquery (more) and coffee-script drive our front end design.

toonrail's People

Contributors

lukeclancy 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.