Not work perfectly on mobile devices (especially those with small screen). Trying to fix that right now.
This is a single page application completely built using React.js & React Router. My personal blog is hosted by Github Pages. All the .md
files(as post content) is also loading using Ajax from Github. For detailed info, go to my blog and check out the How did I creat a blog System
series.
- git clone this project
- cd into the folder
- run
npm i
(may requiresudo
) - run
npm start
& the program would run @localhost:3000
- run
npm run build
to compile and generate the static webpage @build
folder - You may upload the content in
build
to Github Pages
- Index of all posts is stored in
/src/app/components/content/posts/posts.json
(as a simple database) - posts would be loaded using
Markdown
compiler using Ajax according to the path info provided inposts.json