Giter Site home page Giter Site logo

grapevine's Introduction

Grapevine

General Assembly Project 2

About:

Grapevine is a online blogging app dedicated to keeping the conversation going about local topics. The app features full CRUD on making articles, and a comment feature. Future aspects will include an upvote function which will priority sort the articles, and a sign-in feature.

Technologies:

In this app, I used a MEHN stack with external CSS. If I were to redo this project, I would probably use Bootstrap, or some other design tmeplate to save time. I've noticed that everytime I got frustrated with smething on this project, I would go back to the CSS and spend a lot of time there. One thing I am very proud of is how I formatted the forms for the app:

textarea {
  display: inherit;
  width: 900px;
  font-size: 18px;
  font-family: "Righteous", cursive;
  background-color: rgba(255, 255, 255, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.5);
}
<div class="centerspace">
    <form action="/article" method="POST">
        <input type="text" name="title" id="title" maxlength="50" placeholder="Title">
        <textarea rows="16" cols="90" name="content" id="" placeholder="Say Something..."></textarea><br>
        <input type="submit" value="Post">
    </form>
</div>

it wasn't too difficult to make them look nice, eg. with different fonts in the forms or adding character limits. In fact, I may be using these as templates for forms in later projects. One of the more challenging aspects of this project was connecting my two models. One solution to this problem was creating an embedded Schema in the article model. It made it easier to callback content in the database, and it was one of the only ways that made making the comment section into an array.

Credits:

Photo by Amos Bar-Zeev on Unsplash

grapevine's People

Contributors

aplybeah avatar dependabot[bot] avatar

grapevine's Issues

Adding comments

You may not need a controller for Comments, you can probably get away with doing this in your Article controller, since adding a comment is just updating the comments array in your Article model.

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.