the-canonizer / canonizer-3.0-api

1 stars 0 forks source link

Canonizer
Version: 3.0

View Demo · Report Bug · Request New Feature

Objective

This document helps the contributor to understand the high level understanding of the project and setup the development environment into their machine. This is intended for the developers.

About the Project

A wiki system that solves the critical liabilities of Wikipedia. It solves petty "edit wars" by providing contributors the ability to create and join camps and present their views without having them immediately erased. It also provides ways to standardise definitions and vocabulary, especially important in new fields.

Dependent Modules & Services

Architecture & Design

The application is designed based on SOA (Service Oriented Architectue), where all the different component of the system treated as a service and accessible by the RESTFull api. Please follow the link for high level architecture and design.

Application Queuing System

Most of the long running jobs are implemented through events and jobs. Application uses the events and jobs provided by the Lumen framework. There are two types of tasks which is implemented by events and jobs.

Please refer the link to see the implementation and configuration.

Getting Started

Setup Development Environment

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please clone the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

Create Branch

Go to the project root folder ie. canonizer-3.0-api

Commit the Changes

Once the changes have been done, make sure to add the new files that have created. Provide a suitable message on every commit. This helps other to understand the changes applied on a specific commit.

git add -A
git commit -m "<message>"

Push the Changes

Before pushing any changes to the remote repository, please take a pull of the latest changes of the base branch. If there is any conflict then resolve it first and again commit the changes and then push.

git pull origin development
git commit -am "<message>" [Optional, only required if any conflicts]
git push -u origin <branch name>

Create a Pull Request

Login to the github.com and select the repository canonizer-3.0-api. After that follow the below instruction

Run Test Cases

Update the exiting test cases if required or create a new test case for any new functionality. Before any pushing the changes, please verify that all the test cases are successfully passed. Run the below command from the project's root directory.

./vendor/bin/phpunit

For all the test functions a specific file

./vendor/bin/phpunit --filter "<test case file name>"

Help

  1. Run migration
    php artisan migrate
  2. Run a specific migration file
    php artisan migrate --path <file path>
  3. Run a seed
    php artisan db:seed
  4. Run a specific seed
    php artisan db:seed --class=<seeder class name>
  5. Check supervisor status
    sudo supervisorctl status
  6. Start supervisor
    sudo supervisorctl start all
  7. Stop supervisor
    sudo supervisorctl stop all
  8. Restart supervisor
    sudo supervisorctl restart all

License

Lesser MIT License

Copyright (c) 2006-2023 Canonizer.com

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 with minimal restriction, including without limitation the rights to use, copy, modify, merge, publish, and distribute copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Any activity arising from use under this license must maintain compliance with all related and dependent licensees.

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.

Contact

Brent Allsop - @Brent's_twitter - brent.allsop@gmail.com

Project Link: https://canonizer.com