Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

About

A blog created with Node.js where users can register, login, create or delete a post, and update their details.

Technology

  • HTML/CSS
  • Vanilla JS
  • Node.js/Express
  • MySQL

How to run it on your computer?

Prerequisites

  • Install XAMPP or a similar tool to be able to run MySQL.
  • Install HeidiSQL, a graphical interface to manage MySQL databases or a similar tool (Optional).
  • Install Node.js, which includes npm.

Setting up the database

  • Open XAMPP and start the MySQL module.
  • Open HeidiSQL or a similar tool and connect to the MySQL server by entering your chosen host, username, and password. In this project, the default username 'host' is used and the password is empty.
  • Create a new database. I named mine "Coursework3" in this project.
  • Browse to the project folder and go to the database_dump folder, and import posts.sql and users.sql into the created database to populate the database with dummy data.

Run the server

  • Open a terminal or command prompt and navigate to the project folder.
  • Run npm install to install project dependencies.
  • Run node server.js to start the server.
  • Open a web browser and go to http://localhost:8080 (or your chosen port) to see the running application.

UI

Homepage

Node.js blog

Post creation

Create-post

Posts created

Posts

Profile page

Profile

Future work

  • Allow users to add a profile picture.
  • Allow users to edit their past posts.
  • Allow users to upvote and downvote a post.
  • Allow users to direct message another user.
  • Allow users to update their email or password upon providing their current password.

About

A blog developed with Node.js whereby users can register, login, create a post and update their details.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages