/simple-blog

A simple and lightweight blogging engine

Primary LanguageTypeScript

simple-blog

A simple and lightweight blog engine. Demo

Prerequisite

You will need

  • nodejs (version 14 recommended)
  • yarn

Getting started

  • Clone this repo
git clone git@github.com:nkhdo/simple-blog.git
  • Setup dependencies
yarn install
  • Copy .env file
cp .env.example .env
  • Generate APP_KEY and set it inside .env file
node ace generate:key
  • Run database migrations
node ace migration:run
  • Run database seeds
node ace db:seed

Development

  • Start dev server
yarn dev
  • Play around with the code

Production

The fastest way is use docker-compose

docker-compose up

Notes: remember to set NODE_ENV to production before starting a production instance