Skip to content

TaimurHasan/TechTalk

Repository files navigation

TechTalk

Description

Tech Talk Homepage


TechTalk is an online tech blog, which allows a user to create an account and start posting blog posts. Beyond that, a user is able to edit and delete posts as needed, as well as leave comments on other user's posts. This project uses user authentication to ensure that only password-protected accounts are able to make, edit, and delete posts or comments.

Note: passwords are encrypted using the bcrypt npm package!

License: MIT

Languages and Technologies Used:

  • JavaScript ES6
  • Node.js
  • Express.js
  • MySQL (Sequelize ORM)
  • Handlebars

Table of Contents

  1. Installation
  2. Usage
  3. License
  4. Contributing
  5. Questions

Installation

To run this application locally, follow the steps listed below:

  1. Download the latest version of node.js on your computer and ensure you have access to a MySQL account.
  2. Clone this repository on your computer by opening your command-line interface and using git clone and the HTTPS or SSH URL retrieved from this repository's 'Code' dropdown above (e.g.git clone git@github.com:TaimurHasan/TechTalk.git).
  3. Navigate or cd into the cloned directory from the CLI (i.e. cd ./TechTalk).
  4. Initialize the NPM registry, as it hosts the required packages needed to run this application, using npm init -y.
  5. Create a '.env' file provided in the root directory of repository and add the following:
  • DB_NAME = 'tech_talks_db'
  • DB_USER = '<SQL user'>
  • DB_PW = '<SQL password'>
  1. Run mysql -u root -p to login into sql and run the following code lines to initialize the database and pre-populate its tables:
  • source db/schema.sql
  1. Install the required packages using 'npm i'.
  2. Call the application using node server.js to launch!

Usage

To use this application, please visit the deployed application on Heroku.

In order to use the full functionality of this application, please create an account. To create an account, navigate to the 'Login' page from the nav bar and click where prompted to sign up. You will be required to provide a unique username and a password to make an account. From there, navigate to your dashboard to create posts, or back to the homepage to view existing posts and leave comments!

Login
Tech Talk Login Page

Single Post Page and Comments
Tech Talk single post Page

License

This project is licensed under the MIT License - see the license info for details.

Contributing

This project can be contributed to by forking the application. For any contributions, please submit a Pull Request, which will be reviewed upon submission before acceptance.

Questions

GitHub
For any questions, please send an Email to taimurhasan11@gmail.com

About

A tech-based blog built using Javascript, allowing users to create an account to login, write posts, and leave comments!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors