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.

65 lines
1.3 KiB

6 years ago
6 years ago
  1. # NodeJSBlog
  2. Recreating my Wordpress blog in node JS.
  3. ## MYSQL Information
  4. ```SQL
  5. create database jrtechs_blog;
  6. use jrtechs_blog;
  7. create table users(
  8. user_id mediumint unsigned not null AUTO_INCREMENT,
  9. user_name varchar(60) not null,
  10. password char(64) not null,
  11. salt char(64) not null,
  12. primary key(user_id)
  13. );
  14. create table categories(
  15. category_id mediumint unsigned not null AUTO_INCREMENT,
  16. name varchar(60) not null,
  17. url varchar(60) not null,
  18. primary key(category_id)
  19. );
  20. create table posts(
  21. post_id mediumint unsigned not null AUTO_INCREMENT,
  22. category_id mediumint unsigned not null,
  23. picture_url varchar(100) not null,
  24. published datetime not null,
  25. name varchar(100) not null,
  26. url varchar(100) not null,
  27. primary key(post_id)
  28. );
  29. create table downloads(
  30. download_id mediumint unsigned not null AUTO_INCREMENT,
  31. url varchar(20) not null,
  32. file varchar(20) not null,
  33. primary key(download_id)
  34. );
  35. create table popular_posts(
  36. popular_post_id mediumint unsigned not null AUTO_INCREMENT,
  37. post_id mediumint unsigned not null,
  38. primary key(popular_post_id)
  39. );
  40. grant all on jrtechs_blog.* to blog_user@localhost identified by "password";
  41. ```
  42. ## Node Dependencies
  43. ```bash
  44. npm install express
  45. npm install express-session
  46. npm install mysql
  47. npm install sanitizer
  48. npm install promise
  49. npm install highlight
  50. npm install crypto
  51. npm install express-force-ssl
  52. npm install remarkable
  53. ```