howfeed/README.md

36 lines
701 B
Markdown
Raw Permalink Normal View History

2020-06-04 23:19:59 -07:00
![HowFeed.biz](./static/logo.png)
2020-06-04 00:59:08 -07:00
2020-06-04 21:29:16 -07:00
A satirical blog with its own lightweight CMS, which all runs on [Sapper](https://sapper.svelte.dev).
2020-06-04 00:59:08 -07:00
2020-06-04 19:33:39 -07:00
## Setup
2020-06-04 00:59:08 -07:00
2020-06-06 15:34:49 -07:00
Requires Node.js and MongoDB
2020-06-11 10:51:09 -07:00
Create a MongoDB database for howfeed:
```sh
$ mongo
> use howfeed;
```
2020-06-04 21:29:16 -07:00
Set up `.env.example` as `.env`
2020-06-04 00:59:08 -07:00
2020-06-11 10:51:09 -07:00
Then install dependencies and start a local server:
```sh
$ npm i
$ npm run dev
```
## Usage
Anyone can sign up for an account, but to designate a certain account as an author so they can publish articles, you will need to set the `author` field to `true` in Mongo:
2020-06-04 19:33:39 -07:00
```sh
2020-06-11 10:51:09 -07:00
$ mongo
> use howfeed;
> db.users.updateOne({username: 'myuser1'}, {$set:{author: true}})
2020-06-04 00:59:08 -07:00
```
2020-06-11 10:51:09 -07:00
Then the user should logout and log back in.