howfeed/README.md
2020-06-11 10:51:09 -07:00

701 B

HowFeed.biz

A satirical blog with its own lightweight CMS, which all runs on Sapper.

Setup

Requires Node.js and MongoDB

Create a MongoDB database for howfeed:

$ mongo
> use howfeed;

Set up .env.example as .env

Then install dependencies and start a local server:

$ 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:

$ mongo
> use howfeed;
> db.users.updateOne({username: 'myuser1'}, {$set:{author: true}})

Then the user should logout and log back in.