Skip to content

A user posts an article from another source and other users vote or comment on the post.

Notifications You must be signed in to change notification settings

nicnolen/just-tech-news

Repository files navigation

Just Tech News

MIT License

Table of Contents

Description

This app allows a user to post an article from another source and other users can vote or comment on the post.

Built With

  • HTML
  • CSS
  • JavaScript
  • Insomnia (for testing)
  • Handlebars.js
  • MySQL
  • Sequelize
  • dotenv (to create the environmental variables)
  • JawsDB (to deploy mySQL to Heroku)

Installation Instructions

Node.js Installation

Make sure that you have Node.js installed on your computer by entering node -v in the command line. If successful, the command prompt will return a version number. If not, try reinstalling Node.js by following this link: https://nodejs.org/en/ and clicking on the LTS version. If you are on Windows, make sure to look for the section that says Download for Windows (x64). If you are using macOS, make sure to look for the section that says Download for MacOS (x64)

Clone the Code

Once Node.js is downloaded, click on the green code button and copy the link to this repository. Then open up your favorite code editor and open the terminal. In the terminal use cd to go to the root directory you want this repository to be cloned to. Finally, in the terminal, type git clone <file link> to clone this repository to your directory.

Express.js Installation

You must also install the Express.js npm package to run the server. Since Express.js is an npm package instead of being built directly into node.js, you must type npm init into the command line to allow npm packages to be installed. Next, go to the server.js file, and in the command line, type npm install express to install Express.js on your computer. For documentation on Express.js follow this link https://expressjs.com/en/4x/api.html.

Usage Instructions

To see and use the deployed site, follow this link to Heroku: https://just--tech--news.herokuapp.com/

  1. After following the link, click the login button at the top right of the screen to be navigated to the login page.

  2. Once on the login page, either login using the top login form, or create a new account using the bottom sign-up form.

  3. After you login, you will be navigated to the homepage.

  4. On the homepage, you can click on the comments button under a post to add a comment or upvote to a post.

  5. If you wish to create a new post, click on the dashboard button to the left of the logout button at the top of the screen to be navigated to your dashboard where you can create a new post, or view your existing posts.

Tests

To run tests, type the command npm run test in the command line

License

Permission to use this application is granted under the MIT license. Click on the link for more information: MIT License Information

Contact Me

GitHub Link: (https://github.com/nicnolen)
Email Address: nicnolen@ymail.com

About

A user posts an article from another source and other users vote or comment on the post.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published