Giter Site home page Giter Site logo

skinny-blog's Introduction

Skinny Blog

This is a rather simple RESTful API-based blog that uses AngularJS to render articles served by a Slim Framework server.

Deployment Process

After cloning the repository, copy the example config file:

$ cp config/config.yaml.dist config/config.yaml

Change any values in the configuration file that need changing. Ensure that you set the env to production.

Run composer with options optimized for production:

$ composer install --no-dev --optimize-autoloader

Have Doctrine generate the database schema and entity proxies:

$ ./vendor/bin/doctrine orm:schema-tool:create
$ ./vendor/bin/doctrine orm:generate-proxies

Setting Up for Development

Start by running composer:

$ composer install

Copy the /config/config.yaml.dist file to /config/config.yaml and change the file as necessary. After doing that, tell Doctrine to generate the schema needed to run the blog:

$ ./vendor/bin/doctrine orm:schema-tool:create

PHPUnit has been set up to run tests located in the tests folder, so you can simply run the PHPUnit script to run the test suite:

$ ./vendor/bin/phpunit

We can have PHP serve the site for us (it will set up all of the proper re-write rules):

$ cd public/
$ php -S localhost:8080

If you want to work on the frontend, you'll want to install Gulp to transpile the Sass and CoffeeScript files. You will also need to install the Node packages denoted in the package.json file:

$ npm install -g gulp coffee-script
...
$ npm install

For simplicity reasons, the minified files are committed to the code base to prevent having to install Node and all of its dependencies on the production server. The map files are ignore by the .gitignore file, but you can also run the build or default Gulp tasks to remove the map files.

To make working on the frontend easier, a watch task has been set up to automatically transpile when something has changed:

$ gulp watch

Notes

This platform is still in heavy development and really isn't designed to be installed and used by everyone (or anyone other than me for that matter). This project is mostly for my personal blog, but there's no reason to close-source the codebase.

skinny-blog's People

Contributors

bharley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.