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.

57 lines
1.2 KiB

6 years ago
  1. # NodeJSBlog
  2. Recreating my wordpress blog in node JS.
  3. ## MYSQL Information
  4. ```SQL
  5. create database blog_name;
  6. use blog_name;
  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 popular_posts(
  30. popular_post_id mediumint unsigned not null AUTO_INCREMENT,
  31. post_id mediumint unsigned not null,
  32. primary key(popular_post_id)
  33. );
  34. grant all on blog_name.* to blog_user@localhost identified by "password";
  35. ```
  36. ## Node Dependencies
  37. ```bash
  38. npm install express
  39. npm install express-session
  40. npm install mysql
  41. npm install sanitizer
  42. npm install promise
  43. npm install highlight
  44. npm install crypto
  45. npm install express-force-ssl
  46. npm install remarkable
  47. ```