Spartan is the complete API and Database Layer that the Tilas Publishing Platform is built on. Lantern (the CMS platform) and Titan (The Website Platform) both speak to it via REST web services to provide all the features of the end to end publishing and blogging front-ends.
Spartan 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 Spartan running on your own server by following these steps.
- MongoDB > Setup a MongoDB server, which needs to be accessible to Spartan via mongodb://db-server-name/
- MongoDB > Then create an empty database, which is accessible via mongodb://db-server-name/new-db-name
- AWS S3 > Create a new S3 bucket with a name of your choice
- AWS S3 > Create a AWS API Key and Secret for your account
- Create a new folder to house your Spartan installation
- Unpack Spartan 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
- Execute npm run dbsetup
- You should see a success message if it all worked
- Test can be run via npm test
- All tests should pass before your continue
- 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
- Here you can read the API docs, view tests results, etc
- Put Spartan http://URL:Port
behind a web server and map your domain name to it. e.g. http://your-spartan-domain.com
- You can then setup Titan to view your Blog's frontend
- You can then setup Lantern to start adding content to your Blog
For more details on Spartan installation and other technical details.
Below is the latest test results after npm test
was last run by you. The start
date below will tell you when it was last run.