Overview
Jalpc-A is a front-end web application written in Angularjs. It is a theme similar to Jalpc and allows users to register and login to comment on blogs. Only admin users can add blogs, but anyone can build a blog where everyone can add blogs. The backend platform of the app is based on Leancloud, but can also use Parse. The creator of the theme encourages users to give encouragement and star the project to make it better.
Features
- Login with github account: Users can login to the web application using their github account. The app uses Leancloud engine to enable this feature.
- Web analytics: Google analytics is used for web analytics. Users can register an account and apply an application to replace the javascript code in the website.
- Rich Text Editor: The theme uses summernote to generate a rich text editor on web pages. Users can write various styles of words and add pictures, videos, etc.
- Share: A QRCode image is generated for every blog using angular-qrcode. This image contains the absolute URL of the blog, allowing users to access and share it on other devices.
- Comment: Users can login and comment on blogs using the summernote editor. They can also reply to others’ comments and delete their own comments.
- Pagination: The pagination is based on ui-bootstrap, however, there is a bug where if items-per-page is put in the HTML DOM and the page params are used to get the data with ui-router, the page will go to the matching page and return to the first page immediately. Therefore, the bug was addressed by not putting it in HTML and recalculating the total count.
- Safe: The project considers the safety of user’s usernames and passwords and ensures a safe connection.
Installation
To install the Jalpc-A theme, follow these steps:
- Fork and clone the repository to your local machine.
- Register an account at Leancloud and create an application.
- Get your App ID and App Key from the settings of your application on Leancloud.
- Replace the App ID and App Key in the
js/app.js file with the ones from your Leancloud application. - Start the Jekyll Server with the
--watch option to automatically update the generated HTML. - Access the site by navigating to
localhost:4000 in your browser.
Additionally, you can use npm or other local web services to view the website. Just remember to remove the front matter in the website.html file. If you want to host your Jekyll site for free, you can use Github Pages. More information on hosting with Github Pages can be found here, as well as a configuration tweak if you’re using a gh-pages sub-folder.
Summary
Jalpc-A is a front-end web application theme written in Angularjs. It provides features such as login with a github account, web analytics, a rich text editor, sharing capabilities, commenting functionality, pagination, and ensures user safety. The theme can be installed by forking and cloning the repository and following the installation guide provided.