1.0.5 • Published 9 years ago
gitmeet-template v1.0.5
GitMeet-template 
Simple plug-n-play markdown blog website for node.js
This template was created for my personal blog at gitmeet.com. But due to it's portability and markdown writing format, I guess this help you set up your personal blog within 5 mins.
--
System requirement
- node.js
- mongodb
--
Install and configure
- copy latest release of this repo (download and extract .zip file) |
git clone https://github.com/thatisuday/gitmeet-template.git|npm install gitmeet-template - open cmd/terminal and run
npm install - open cmd/terminal and run
bower install(install bowernpm install -g bower) - edit
createAdmin.jsfile from/api/__once. Set appropriate credentials. Run this file with node (node createAdmins.js). This will create admin document in mongodb to create and manage your posts. - run
web-server.jsfile from parent directory with node. This will start http server at port 8881. - sign in from
/admin/signin - add post from
/admin/add-post - edit post from
/admin/edit-post/post-id. Post id is string followed by/post/in url of your post. - delete post by clicking delete button on edit page.
You should run
web-server.jsusingforeveras you want to run this website forever.
npm install -g foreverforever start web-server.js
--
Customize / Build
- edit constants in
api/constants - edit
index.html - edit files in
templates/__unmin - open cmd/terminal
- install gulp globally
npm install -g gulp - build using
gulp buildcommand. - push on your production
--
disqus comments
- go to disqus.com and create a admin account. Get your shortname.
- if you are building the repo with gulp, replace
gitmeetwith your shortname inassets/js/src/app/app.js - else replace
gitmeetwith your shortname in.setShortname("gitmeet")insideassets/js/dist/app.min.js.
--
Sitemap
Sitemap for the website will be automatically generated using sitemap module for node.js and will be available in xml format at hostname/sitemap.xml.
Please edit
hostnamein web-server.js to customize your sitemap urls.
--
Bug reports and contributions
- If you face any problems, create a github issue or email me on
uhiwarale@gmail.com - If you make any improvements or optimization, please share with us all by giving a PR.
- If you want to use it for commercial purpose, please take permission first.