How yogendrabaskota/nodeproject works
This is a small Express/EJS blog application scaffold. A browser can request home, login, and registration pages; the server renders their views and accepts a registration POST, though that handler currently does not persist the submitted fields. At startup, the app initializes Sequelize models and attempts to authenticate and synchronize a MySQL database. The graph captures that implemented flow and the available templates and styles; view internals were not sampled, so no form-submission or navigation behavior is inferred.
Main entry points: app.js Express routes · index.js Sequelize setup · css CSS assets · home.ejs Home view
Components 12
Web server
- Express routes
app.js - CSS assets
public/css
Rendered views
- Home view
views/home.ejs - Login view
views/auth/login.ejs - Registration view
views/auth/register.ejs - Navbar template
views/components/navbar.ejs
Persistence
- Sequelize setup
model/index.js - MySQL config
config/dbConfig.js - User model
model/userModel.js - Blog model
model/blogModel.js
Other components
- Browser
- MySQL database
Connections 10
- Browser → Express routes: requests pages
app.js - Express routes → Home view: renders
app.js - Express routes → Login view: renders
app.js - Express routes → Registration view: renders
app.js - Express routes → CSS assets: serves static files
app.js - Express routes → Sequelize setup: initializes
app.js - Sequelize setup → MySQL config: loads settings
model/index.js - Sequelize setup → User model: creates model
model/index.js - Sequelize setup → Blog model: creates model
model/index.js - Sequelize setup → MySQL database: authenticates and syncs
model/index.js