Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nkhdo/simple-blog

A simple and lightweight blogging engine
https://github.com/nkhdo/simple-blog

blog engine

Last synced: 1 day ago
JSON representation

A simple and lightweight blogging engine

Awesome Lists containing this project

README

        

# simple-blog
A simple and lightweight blog engine. [Demo](https://realhuy.com/blog)

## Prerequisite
You will need
- `nodejs` (version 14 recommended)
- `yarn`

## Getting started
- Clone this repo
```bash
git clone [email protected]:nkhdo/simple-blog.git
```
- Setup dependencies
```bash
yarn install
```
- Copy `.env` file
```bash
cp .env.example .env
```
- Generate `APP_KEY` and set it inside `.env` file
```bash
node ace generate:key
```
- Run database migrations
```bash
node ace migration:run
```
- Run database seeds
```bash
node ace db:seed
```

## Development
- Start dev server
```bash
yarn dev
```
- Play around with the code

## Production
The fastest way is use [docker-compose](https://docs.docker.com/compose/)
```bash
docker-compose up
```
**Notes**: remember to set `NODE_ENV` to `production` before starting a production instance