Node.js Content Management System with MongoDB
These are the following libraries/APIs I've used in this project, if you're starting with editing my code, make sure you know how to work with these :
- Edge Templating Engine (for frontend code)
- ExpressJS (application framework)
- PassportJS (login/logout system)
- MongooseJS (for connecting to the database)
This is a basic boilerplate from what you can build a great Node.js application. Some features it includes are :
- User hierarchy (Namely 3 Levels of Users :
Admin
,Moderator
andUser
). - Blog Control Panel (
Admin
andModerator
level users are allowed write and publish blog posts). - Follow/Unfollow (Users can follow eachother)
Note: This was my first pet project using Node.js, so the code could get a bit messy and incomplete at someplaces.
Clone or download this repository.
-
$ cd jeezcms
-
install
$ npm install
Go to the file /config/database.js
.
module.exports = {
'url' : 'MONGODB'
};
Replace MONGODB with your database url, which usually looks like mongodb://<user>:<pass>@mongo.onmodulus.net:27017/Jeisosdp
.
- run
$ npm server
Now go to localhost:4000
and check if your app is running.
Go to localhost:4000/signup
and create an account (This will be your admin account).
Once finished, go to your database, then to the collection Users
and find the user you created, edit it and change it's level
attribute to Admin
from User
and save changes.
I will not be providing any support for this project because I made this project just to practice my skills in Node.js and MongoDB.
The source-code is under MIT license.