Code Monkey home page Code Monkey logo

meg's Introduction

Meg - a minimalistic blog/personal site

Meg [ the pronoun 'me' in norwegian : /mæɪ̯/], is a lightweight, minimalistic Blog/Personal site, with the sole goal to give its users an easy to run, fast, secure blog.

This blog is built using:

Clone, Setup and Run:

Clone the project to a local repo:

git clone https://github.com/osminosm/meg.git
cd ./meg

Install dependencies

// using npm
$ npm install
// using yarn
yarn

Additional Database drivers, as sequelize needs these to function depending on what db you're using

// using npm
$ npm install --save pg pg-hstore // Postgres
$ npm install --save mysql2  // MySql
$ npm install --save sqlite3 // Sqlite
$ npm install --save tedious // MSSQL

// using yarn
$ yarn add pg pg-hstore // Postgres
$ yarn add mysql2  // MySql
$ yarn add sqlite3 // Sqlite
$ yarn add tedious // MSSQL

Run for development:

// using npm
$ npm start
// using yarn
yarn start

Run for production:

$ node index.js --configFile /path/to/config.json

Config file

This is how a config file should look like (more or less), if an option is not specified it will default to its value on utils/config-default.json

{
  "host":"localhost",
  "port":"3000",
  
  "db": {
    "dbname": "blog",
    "username": "username",
    "password": "",
    "options": {
      "dialect": "sqlite",
      "storage": "./database.sqlite"
    }
  },
  "bcryptSaltWorkFactor": 10,
  "jwtSecret": "<secret>",
  "jwtUserExpiresIn": 86400,
  "tokenCookieName": "access_token"
}

Keywords

blog minimalistic node express sequelize ejs jwt

meg's People

Contributors

osminosm avatar

Stargazers

okba avatar

Watchers

 avatar

meg's Issues

App needs a setup (script/gui-wizzard?)

On the initial run of the application, all the settings are not set, and more importantly the default user is not there.
There should be either a script to run from CLI or GUI to setup a minimum of the settings and the default user.

app should be responsive

need to figure out a different layout for better rendering on mobile using css view-ports/media-queries and bootsrap's grid

App does not listen on configuration's host/port

Repro

in cli

yarn start
Server is listening on port 3000.
change the config defaults : ./utils/default-config.json
"port" : 3001
yarn start
Server is listening on port 3000.
The port does not change accordingly to configuration.

App should have a media gallery

App administration should include a media gallery where we can primarily:

  • upload pictures (jpeg/png/gif/svg) to a static served directory called 'media'
  • CRUD the media items and their respective meta data
  • Easily integrate existing media to blog posts / page sections ...

About Page Editing

The about page needs a richtext editor page in order to update it
content should be save in DB in a table called 'PageContent' where you can access content via a unique key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.