Git Product home page Git Product logo

majifix-content's Introduction

majifix-content

Build Status Dependencies Status Coverage Status GitHub License Deploy to Heroku

Commitizen Friendly code style: prettier Code Style npm version

A representation of common information (i.e FAQ, Fee, Tariffs etc) that are published by a jurisdiction for general public.

Requirements

Installation

npm install @codetanzania/majifix-content --save

Usage

import { connect } from '@lykmapipo/mongoose-common';
import { Content, start } from '@codetanzania/majifix-content';

// connect to mongodb
connect(process.env.MONGODB_URI, error => { ... });

// fire http server
start(error => { ... });

Testing

  • Clone this repository

  • Install all development dependencies

npm install
  • Run example
npm run dev
  • Then run test
npm test

Contribute

It will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas. Do not forget to add a bit of test(s) of what value you adding.

References

Licence

The MIT License (MIT)

Copyright (c) CodeTanzania & Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

majifix-content's People

Contributors

benmaruchu avatar dependabot[bot] avatar lykmapipo avatar rijkerd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

majifix-content's Issues

Prepare release v1.0.0

NOTE: Make sure all tests are running before committing your changes

Update Dependencies

  • Update faker dev dependency to use @benmaruchu/faker
  • Update all majifix modules used to latest version of @codetanzania/majifix-{module-name}
  • Update other dependencies
  • Fix Http router specs to use api version in URL from app router
  • Remove body parser in dev dependency

Project Structure

  • Make sure .npmignore exist and it ignores right files i.e examples, docs
  • Make sure .editorconfig exist

Files to crosscheck

README.md

  • Use standard formatting
  • Update Requirements for node to match engines in package.json
  • Update installation instructions
  • Update Usage to use new package name i.e @codetanzania/majifix-{module-name}
  • Fix any typos
  • Update Node engine minimum version
  • Update Mongoose version

CHANGELOG.md

  • Add release version and date in the format v1.0.0 / yyyy-mm-dd
  • add list of changes/features in the release

package.json

  • Update package name in package.json to use @CodeTanzania scope
  • Update package version number
  • Update keywords in package.json to be
     	  "keywords": [
     		"codetanzania",
     		"majifix",
     		"majifix-module",
     		  "<replace with module-name>",
     		  "open311"
       ],
  • Update sandbox url to use new api version
  • Add engines as
         "engines": {
     	   "node": ">=8.11.1",
     	   "npm": ">=5.6.0"
     	}

.model.js

if there is model file

jsdoc

  • Crosscheck authors are there
  • Make sure the version number is updated
  • For block comments with separators use hyphens to show separations
      /*
      *---------------------------------------------------------------------
      * Statics
      *---------------------------------------------------------------------
      */
  • Make sure the formatting for jsdoc follow it's conventions
  • Fix any typos

codes

  • Make sure spacing between blocks in 2 lines
  • Make sure the code organization is right
  • For local constants should be under local constant comment

.router.js

if there is router file

  • Fix any typos
  • Update api version
  • Make sure all routes are well documented
  • Generate API documents

.app.json

if there is app.json file

  • Make sure the details are correct
  • Make sure keywords resembles those from package.json

.apidoc.json

if there is apidoc.json

  • Remove description field
  • Remove version field
  • Update sample url and url to use latest API url format

Generate API Documentation

if applicable to the module

  • Run a command
    grunt doc
  • Generate apidoc and crosscheck if everything is ok

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.