Giter Site home page Giter Site logo

stradap / ponyfoo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigdirkmalone/nbrut

0.0 2.0 0.0 52.13 MB

🦄 Open-source blogging platform from the land of rainbows

Home Page: https://ponyfoo.com

License: MIT License

JavaScript 38.37% Shell 2.69% CSS 8.22% Nginx 0.07% HTML 50.64%

ponyfoo's Introduction

Pony Foo

Open-source blogging platform

Evolution

Watch history unfold!

Development

Merely install dependencies and run the application using npm start. The start command will compile and bundle all necessary assets, set up file watchers, as well as nodemon and browser-sync so that you’re able to continuously develop.

npm install
npm start

Deployments

First off you’ll need to download and install the awscli tool.

pip install awscli

Then configure it with your AWS credentials. Make sure to leave the default JSON format output as-is, the deployment scripts revolve around using jq to parse the awscli output.

aws configure

You’ll probably want to create an instance on EC2. The command below will spin up a new instance, give it an IP address, and set it up for node and nginx. Note that the database server must be hosted separately. For this purpose I chose mLab as my DBaaS provider of choice, the free tier should suffice.

npm run launch

Configure it with it’s private environment variables, which you should place in an .env file in the application root. The command below will push the .env file via rsync to the server and restart it, so make sure you only update environment variables when necessary.

npm run configure

Whenever you want to deploy, use the command below. It’ll bump the version by a single patch digit and upload the diff since the last deployment. Uploading occurs via rsync, then nginx and node are hot-reloaded thanks to forever and recluster.

npm run deploy

You can then quickly access the deployed site on your favorite browser.

npm run open

If you run into trouble, you can ssh into the instance and ammend the situation by yourself.

npm run ssh

Usage

To access the production site visit ponyfoo.com, or use curl to get a plaintext edition.

curl -L -H "Accept: text/plain" ponyfoo.com/articles/last

License

MIT

ponyfoo's People

Contributors

bevacqua avatar arkni avatar radum avatar

Watchers

James Cloos avatar Pablo Estrada 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.