Everyone has a blog page, but if you think regular blog systems are complicated to introduce yourself and your achievements, you're on the right place. This is the new way to introduce yourself and your achievements. Live demo: Hasbi Sevinç
If you have a mongodb running on your server, you can skip this section. To install mongoDB into centos: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-centos-7
or download it with Download button on github page.
Now, you will have backend and frontend folders. Backend contains our api functions that connect to mongoDB. Frontend folder contains blog and admin page ui with required JS files.
- Go to MileStoneBlog/backend directory and open server.js with your favorite text editor.
- Change urls in the origin section on line 12.
If your website and backend urls are stored in different domains, make sure, you have write all combination of your web site url. Otherwise, you cannot connect backend from your website.
- Go to MileStoneBlog/backend/app/routes and open index.js with your favorite text editor.
- Change url variable with your mongoDB url.
default url usually const url = "mongodb://127.0.0.1:27017"
- Go to MileStoneBlog/frontend/js and open config.js with your favorite text editor.
- Change API_URL variable with url that will be indicate your backend.
for example:
var API_URL = "http://YOUR_SERVER_IP:8000/"
- Upload backend files into your server. Go to root directory of backend (/MileStoneBlog/backend)
- Start backend script
- install np2 (to run backend server in the background as a service)
npm install -g pm2
- start server
cd MileStoneBlog/backend/ pm2 start server.js
- Upload frontend files via FTP
- Go to your website
- You should see an empty blog page with header
- Go to admin page
http://YOUR_WEB_SITE.com/admin
- Login with
username:admin password:admin
- Go to settings tab and change your password!!!
- Thanks to Vertical Timeline project of CodyHouse
- Icon Set Font Awesome
- Backend has been developed with NodeJS and frontend has been developed with pure JS
- We cannot set title (person name), subtitle and other basic information (yet)
- We should implement a text editor to long text (enabling HTML tags)
- We should hide "read more" button if there is no long body text
- Make sure your firewall not blocking the backend. To allow 8000 port:
iptables -A INPUT -m state --state NEW -p tcp --dport 8000 -j ACCEPT
- Make sure your cross-origin settings allow connection
- Make sure mangoDB url is right
- Make sure you upload frontend files to right directory via FTP
- Please open a bug on Github