Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nkhdo/simple-blog
- Owner: nkhdo
- Created: 2021-01-23T13:36:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T10:48:41.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T10:55:52.150Z (about 2 months ago)
- Topics: blog, engine
- Language: TypeScript
- Homepage:
- Size: 327 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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