This is a website made using Node.js, Express and MongoDB for the server. It also uses jQuery and ajax for some parts of content loading, combined with EJS for rendering the pages.
The site supports liking, commenting, notifications, tagging, mentioning and markdown.
If you want to modify this project on your machine, clone the project using git clone https://github.com/extremq/shobi-node.git
.
After that, run npm install
inside the folder to fetch all the node modules.
You also need to create an .env
file inside the project folder with the following variables:
DATABASE_URL=mongodb://localhost/{your-database-name}
SESSION_SECRET={a random string}
ADMIN_ID={your admin userid}
ADMIN_NAME={your admin name}
IMGUR_ID={your imgur client id}
PRODUCTION={false if you use http, true if you use https}
You need to create an Imgur account and register an application for the IMGUR_ID
I suggest modifying the router.get('/authkey')
route found in routes/index.js
so you can generate an authkey. After creating an account with it (check router.post('/register')
first), change it back and set ADMIN_ID
to be the new account's id.
Now, you only need to run npm run devStart
to fire up a server on localhost:3000
.
That's it!
General interface
Search parameters
Example post
Comments