|
|
7 years ago | |
|---|---|---|
| .idea | 7 years ago | |
| admin | 7 years ago | |
| css | 7 years ago | |
| downloads | 7 years ago | |
| entries | 7 years ago | |
| img | 7 years ago | |
| includes | 7 years ago | |
| posts | 7 years ago | |
| sidebar | 7 years ago | |
| utils | 7 years ago | |
| Blog.dia | 7 years ago | |
| LICENSE | 7 years ago | |
| README.md | 7 years ago | |
| blogSql.svg | 7 years ago | |
| generateSitemap | 7 years ago | |
| package.json | 7 years ago | |
| robots.txt | 7 years ago | |
| run | 7 years ago | |
| server.js | 7 years ago | |
| sitemap.txt | 7 years ago | |
Recreating my Wordpress blog in node JS.
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";
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