Titan is the full user-facing front end for your Tilas platform which is built completely on the Spartan API. It can be thought of as the front-end blog which your users will interact with.
It's a fully responsive front-end that is highly customisable using environment variables and a configuration file. On top of standard blogging features (e.g. articles, posts, images, tagging, authors etc),
it also comes with cool features like social media share links, adsense, google analytics and an automatic sharing (AutoShare) feature that will manage your facebook sharing on a schedule (when configured via the Lantern CMS).
Titan can be installed on your own machine (for Development) or local or remote server or VM (for Staging or Production).
But we recommend you deploy it on DigitalOcean via a Dokku image, this way you can run Spartan, Lantern and Titan as Docker containers that support zero-down-time upgrades via GIT code pushes. This is cool, trust us :)
Get Titan running on your own server by following these steps.
- Spartan API > Setup the Spartan API Layer, which needs to be accessible to Titan via a public URL like http://spartan.yourdomain.com
- Facebook App> Ideally you will have a Facebook Page that will feed traffic to your site/blog. You should also create a new Facebook App for your Page and then get the App's Client ID and Secret which we will use to "Pair" Titan to your Facebook App/Page
- Create a new folder to house your Titan installation
- Unpack Titan code into this directory
- cd
into your directory
- Run npm install
to install your dependencies
- Add your desired settings to settings files in scripts/development.sh
or staging.sh
or production.sh
- And then export your environmental variable into your current session like so: . scripts/development.sh
- Add your desired settings to the /config/default.json
file.
- Launch the server by running npm start
- Note down the URL:Port your server is running on
- Test your installation by visiting http://URL:Port
- Open the /public/css/main.css
file and scroll down to the bottom to add your CSS over-rides
- Put Titan http://URL:Port
behind a web server and map your domain name to it. e.g. http://your-titan-domain.com
- You can then setup Lantern to start adding content to your Blog
For more details on Titan installation and other technical details.