Giter Club home page Giter Club logo

jay1194 / just-tech-news Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 217 KB

This project enhances a tech news platform with Sequelize, allowing efficient SQL database management via a Node.js ORM. It features an MVC architecture with Express and dynamic rendering with Handlebars, enabling users to post, comment on, and upvote articles. This setup simplifies database operations and enriches user interactions on the site.

Home Page: https://floating-island-70197-3c8e5b4abc6d.herokuapp.com/login

License: MIT License

JavaScript 78.41% CSS 7.10% Handlebars 14.49%
css express-js handlebars-js javascript mysql node-js sequelize cookiesession jest restful-api mvc-architecture

just-tech-news's Introduction

Just-Tech-News

Sequelize: A Node.js ORM simplifying SQL database interactions with JavaScript.

Table of Contents

Description

Welcome to Sequelize, a powerful Object-Relational Mapping (ORM) library designed for Node.js, facilitating smooth interactions with SQL databases. This project harnesses the capabilities of Sequelize to simplify database operations, making it easier for developers to work with relational databases using JavaScript.

Features

  1. Object-Relational Mapping Sequelize provides a seamless bridge between your JavaScript application and SQL databases, allowing you to interact with the database using JavaScript objects instead of raw SQL queries. This abstraction simplifies database operations and enhances code readability.

  2. Database Abstraction With Sequelize, you can work with various SQL databases such as PostgreSQL, MySQL, SQLite, and MSSQL, without having to write database-specific code. This flexibility enables you to switch between databases effortlessly, adapting to the specific needs of your project.

  3. Model Definitions Define your data models using JavaScript classes, representing tables in your database. Sequelize translates these models into database tables, streamlining the creation and management of your database schema.

  4. Migration Support Sequelize supports database migrations, allowing you to version control your database schema changes. This feature is crucial for managing database evolution in a collaborative development environment.

Getting Started

To start using Sequelize, follow the installation instructions provided in the documentation. Create your models, define associations, and seamlessly interact with your database using JavaScript.

Installation

  1. Clone the repository

     git clone https://github.com/jay1195/just-tech-news.git
    

Navigate to the project directory

cd just-tech-news

Install dependencies

npm install

Usage

  1. Open a terminal and navigate to the project directory.

  2. Run the server

    node server.js
    

Technologies Used

  • Sequelize: for Object-Relational Mapping in Node.js
  • Node.js: for server-side JavaScript execution
  • SQL Databases: PostgreSQL, MySQL, SQLite, MSSQL, etc.
  • Bcrypt: for password encryption
  • Dontev: for protecting passwords from github

Contributing

Contributions to Sequelize are welcome! If you have ideas for improvement or bug fixes, please fork the repository, implement your changes, and submit a pull request.

License

badge
This application is covered by the MIT license.

just-tech-news's People

Contributors

jay1194 avatar

Watchers

 avatar

just-tech-news's Issues

Create a dashboard for logged-in users

User Stories:

  • As a logged-in user, I can view all of my posted articles on a separate dashboard page.

  • As a logged-in user, I can create new article posts via the dashboard.

  • As a logged-in user, I can edit or delete my existing articles via the dashboard.

Create a login and signup page

User Stories:

  • As a user, I can visit a login page to create a new account or log into an existing account.

  • As a user, I want to stay logged in even if I refresh the page or close the browser tab.

  • As a user, I can click a "logout" button for the app to forget me.

Create a single post page

User Stories:

  • As a user, I can view an article's details on a separate page.

  • As a logged-in user, I can add a comment to an article.

  • As a logged-in user, I can upvote an article.

Create and manipulate posts

Body:
User Stories

  • As a user, I can create a post

  • As a user, I can retrieve all of my posts

  • As a user, I can retrieve a post by id

  • As a user, I can update the title of a post

  • As a user, I can delete a post

Create a homepage

User Stories:

  • As a User, I can view all news articles in a list.
  • As a User, I can see how many upvotes and comments each article has.
  • As a user, I can click on the comments count to route to a different page.

Create and manipulate comments on post data

Body:
User Stories

  • As a user, I can leave a comment on another user's post

  • As a user, I can see comments other users leave on my posts

  • As a user, I can delete a comment on a post

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.