GithubHelp home page GithubHelp logo

codingblog's Introduction

coding.blog boilerplate

Starter project for coding.blog blogs that uses CODEDOC and the coding.blog Plugin.

Prerequisites

You need NPM, git, and CODEDOC cli.

Local Setup

  1. Use this repo as a template
  2. Clone your blog repo
  3. Go to the cloned folder and install dependencies:
codedoc install
  1. Configure your blog by changing .codedoc/config.ts. Running codedoc check will instruct you on configurations you need to change:
codedoc check
  1. Run local server:
codedoc serve

By default, your blog will be served on localhost:3000/coding-blog-boilerplate. Checkout CODEDOC documentation to learn how to change that (or generally work with CODEDOC).

Using Docker

docker-compose up

The default Dockerfile and docker-compose.yml included in the repo will setup and run a local version of your blog on port 3000. If you want to create your own custom docker setup, remember to exclude .codedoc/node_modules from volumes.

Publishing

You need to have an account with a domain (i.e. <your>.coding.blog) setup. You can request one over here.

If you have an account with a domain, simply head to your account page and connect your domain with your Git repo, i.e. https://github.com/<your-username>/<your-coding-blog>.git. You can then either publish your blog directly from that interface, or use the provided webhook to automatically publish for example when you push to master branch.

NOTE that always your master branch will be published.

To GitHub Pages

This boilerplate comes with a preset workflow for publishing to GitHub Pages. Push something so that your gh-pages branch is created, enable GitHub Pages and set it to use gh-pages branch, and push another time for GitHub to pick up your blog. Note that the contents of gh-pages will be automatically generated via the preset workflow.

codingblog's People

Contributors

itmaywork 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.