Code Monkey home page Code Monkey logo

blog's Introduction

My Blog

My Blog is a blogging website, where users can read and write.

Prerequisite

Set up with the following code

bundle install
yarn install

And be sure to run these👇 to get some random and funny and Hitchiker's Guide to the Galaxy related blogs written by Greek philosophers.

rails db:create
rails db:migrate
rails db:seed

If bash rails db:seed doesn't seed successfully, it is because there are not that many different Greek philosopher's names generated by Faker, so there might be some overlapping. Do not worry. Just run it again.

Afterwards, use [email protected] and 1234567 to login, if you do not want to create your own account. Have fun!

Coding Journey

Following the basic CRUD functions, I added a mark feature. With mark, users can mark articles to read later or read again.

Obstacles🤡

Javascript for the mark feature took me some time to put together. I refer to my dear friend Google and codes I wrote before. Other things mostly went smooth. There were a few silly things that took me a fair amount of time because I do not know everything by heart. For example, I wrote a function that already exists, and then deleted the function because I found it already exists...Another example, I know how to use devise for users, but I did not know I need to manually generate views for devise. It took me a long time to find out that is what I need to do.

Design

Highligted with the most popular color of 2018 announced by Pantone, I made the design minimal. The idea is to make the webpage look like a real piece of paper in your notebook, with half-transparent bookmarks sticking out.

blog's People

Contributors

xunma avatar

Watchers

James Cloos avatar

blog's Issues

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.