Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
jrtechs 4b09f526ba Added a sitemap generator 6 years ago
.idea Added a sitemap generator 6 years ago
admin Added a sitemap generator 6 years ago
css Worked on getting code highlighting for markdown working 6 years ago
downloads Started working on a downloads page 6 years ago
entries Fixed the definition of resolution in Arduino file to prevent naming collisions with timer1 6 years ago
img Worked on the categories sidebar and cleaning up promise statements. 6 years ago
includes added meta stuff for google 6 years ago
posts added post 6 years ago
sidebar Updated look and feel 6 years ago
utils Added a sitemap generator 6 years ago
LICENSE Initial commit 6 years ago
README.md Added a sitemap generator 6 years ago
generateSitemap Started working on site map generator 6 years ago
package.json Added a sitemap generator 6 years ago
robots.txt added meta stuff for google 6 years ago
run Created run script 6 years ago
server.js Added a sitemap generator 6 years ago
sitemap.txt Added a sitemap generator 6 years ago

README.md

NodeJSBlog

Recreating my Wordpress blog in node JS.

MYSQL Information

create database jrtechs_blog;

use jrtechs_blog;

create table users(
user_id mediumint unsigned not null AUTO_INCREMENT,
user_name varchar(60) not null,
password char(64) not null,
salt char(64) not null,
primary key(user_id)
);

create table categories(
category_id mediumint unsigned not null AUTO_INCREMENT,
name varchar(60) not null,
url varchar(60) not null,
primary key(category_id)
);

create table posts(
post_id mediumint unsigned not null AUTO_INCREMENT,
category_id mediumint unsigned not null,
picture_url varchar(100) not null,
published datetime not null,
name varchar(100) not null,
url varchar(100) not null,
primary key(post_id)
);

create table downloads(
download_id mediumint unsigned not null AUTO_INCREMENT,
url varchar(20) not null,
file varchar(20) not null,
primary key(download_id)
);

create table popular_posts(
popular_post_id mediumint unsigned not null AUTO_INCREMENT,
post_id mediumint unsigned not null,
primary key(popular_post_id)
);

grant all on jrtechs_blog.* to blog_user@localhost identified by "password";

Node Dependencies

npm install express
npm install express-session
npm install mysql
npm install sanitizer
npm install promise
npm install highlight
npm install crypto
npm install express-force-ssl
npm install remarkable