And a blog for small news structured with
-
NodeJS
-
Express
-
Msql
-
Create and edit categories for posts
-
Create and edit articles
-
Login for access to section-based administrator route
-
Index with pagination of articles
Made from the NodeJS Training Course taught by Professor Victor Lima on the udemy platform
my goal is to show what i learned while i was learning how to use request routes and responses with nodeJS i learned to use hash session upload server use template engine and much more that can be proven in the project
Simple Blog uses a number of open source projects to work properly:
- Express - Fast, unopinionated, minimalist web framework
- ejs - Embedded JavaScript templates
- body-parser - Node.js body parsing middleware
- mysql2 - Fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
- node.js - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- sequelize - Multi dialect ORM for Node.JS
- slugfy - Convert string to slug
- express-session - Simple session middleware for Express
- bcryptjs - Optimized bcrypt in JavaScript with zero dependencies
Simple Blog requires Node.js v10+ to run.
- open the folder database / database.js file and change the file variables to suit your mysql environment
- go to the localhost:3000/admin/users/create
- to create a user who will have access to the admin route.
- localhost:3000/admin/articles
- localhost:3000/admin/categories Install the dependencies and devDependencies and start the server.
cd simpleblog
npm i
node index.js
The simple blog is currently extended with the following plugins Instructions on how to use them in your own application are at the link below.
Plugin | README |
---|---|
TinyMCE | https://www.tiny.cloud/docs/ |