Code Monkey home page Code Monkey logo

orgmanager's Introduction

OrgManager

Build Status Code Coverage CodeCov license Packagist

Orgmanager is an invite system for GitHub organizations created by Miguel Piedrafita. FOSSASIA is using the system and we decided to fork it and update it to keep it running. We also encourage the community to continue the development. An automatically deployed version of Orgmanager from the repository at FOSSASIA is available at orgmanager.herokuapp.com. Anyone can use it to invite others to their organization.

Dependencies

Installation

To install OrgManager, ensure you fulfill the minimum version requirements and then follow the steps below.

Requirements

To install and run the OrgManager you need need:

Installation Steps

1. Download

Open your terminal and run

git clone https://github.com/orgmanager/orgmanager

2. Add OrgManager to your server

Note: The following steps are outlined for typical server setups, but they can differ greatly depending on your specific setup. Normally you can get the process by searching "How to setup Laravel with X" and skipping the laravel install part. Instructions for hotel are provided, as it is the recommended server for development.

Setup instructions for hotel:

Open the OrgManager folder with the terminal/console and run

hotel add 'php artisan serve --port $PORT'

Now, if you configured custom domains, you can now access orgmanager.{yourtld}. If you didn't, access localhost:2000 and click OrgManager. Yeah, it should be showing that error page, don't worry ๐Ÿ˜„

3. Setup .env

Copy the .env.example file to an .env file. Open the .env file with your favourite text editor/IDE and fill the database, reCaptcha and GitHub settings (you can leave the rest empty).

4. Finish the setup

Open the orgmanager folder with the terminal/console and run

composer update

and

php artisan app:install

5. Done!

You have now the OrgManager beta version up an running in your server! (Note that OrgManager is not auto-updated, read the updating section for more info).

Testing

Automated Tests

For automated testing we use

  • the Laravel testing functionalities
  • PHPUnit

Setting up the testing enviroment

By default, the tests will run in a special database called orgmanager_test in localhost with username root and password root. If you need to change this, edit the .env.testing file. This is an example of a customized .env.testing file:

APP_ENV=testing # don't change this!
APP_KEY=base64:GIkaQ57IIVtTeTQOIh7eAFo1FAcoWkfwYPkfcOyusW4= # this is autogenerated

DB_CONNECTION=sqlite
DB_DATABASE=:memory:

CACHE_DRIVER=array # you shouldn't need to change this
SESSION_DRIVER=array # you shouldn't need to change this
QUEUE_DRIVER=sync # you shouldn't need to change this

Once you've customized your .env.testing file, you have to migrate the database to your test database. You can do this by running

php artisan migrate --env=testing

Running the tests

To run the tests, run

composer test

Contributions Best Practices

Commits

  • Write clear meaningful git commit messages (Do read https://chris.beams.io/posts/git-commit/)
  • Make sure your PR's description contains GitHub's special keyword references that automatically close the related issue when the PR is merged. (More info at https://github.com/blog/1506-closing-issues-via-pull-requests )
  • When you make very minor changes to a PR of yours (like for example fixing a failing Travis build or some small style corrections or minor changes requested by reviewers) make sure you squash your commits afterward so that you don't have an absurd number of commits for a very small fix. (Learn how to squash at https://davidwalsh.name/squash-commits-git )
  • When you're submitting a PR for a UI-related issue, it would be really awesome if you add a screenshot of your change or a link to a deployment where it can be tested out along with your PR. It makes it very easy for the reviewers and you'll also get reviews quicker.

Feature Requests and Bug Reports

When you file a feature request or when you are submitting a bug report to the issue tracker, make sure you add steps to reproduce it. Especially if that bug is some weird/rare one.

Join the development

  • Before you join development, please set up the project on your local machine, run it and go through the application completely. Press on any button you can find and see where it leads to. Explore. (Don't worry ... Nothing will happen to the app or to you due to the exploring ๐Ÿ˜‰ Only thing that will happen is, you'll be more familiar with what is where and might even get some cool ideas on how to improve various aspects of the app.)
  • If you would like to work on an issue, drop in a comment at the issue. If it is already assigned to someone, but there is no sign of any work being done, please feel free to drop in a comment so that the issue can be assigned to you if the previous assignee has dropped it entirely.

License

Licensed under the Mozilla Public License (MPL). For more information, checkout the LICENSE.

orgmanager's People

Contributors

codacy-badger avatar creatoon avatar dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar iamareebjamal avatar imanghafoori1 avatar imgbotapp avatar joaorobertopb avatar laravel-shift avatar limonte avatar m1guelpf avatar mariobehling avatar nathangeerinck avatar pc-beast avatar piamancini avatar pranavkarthik10 avatar rdil avatar renovate-bot avatar renovate[bot] avatar richardlitt avatar rudsarkar avatar rumansaleem avatar samrichca avatar scrutinizer-auto-fixer avatar stylejs-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

orgmanager's Issues

Error the mix manifest does not exitst

After deploy on heroku, I see an error The Mix manifest does not exist. (View: /app/resources/views/landing.blade.php) when open it in browser, but it works when in package.json in scripts I write npm run dev instead of production. Is there some problems with dev or it may be worked as is?

You can check it here: https://shlyapik.herokuapp.com/

Upgrade Orgmanager to Higher PHP versions and resolve Installation issues

Expected Behavior

On using PHP version 5 and above , the installation should be successful.

Current Behavior

On using the PHP version 7.2 , and running the command php artisan app:install the orgmanager fails to install.

  • Device : Windows PC

Screenshots

Screenshot (41)

Possible Solution

Steps to Reproduce (for bugs)

1.Clone and cd into the fossasia/orgmanager repo

2.Check if you have the latest version of Composer installed with PHP version 5< or 7.2.

3.Run composer update

4.And finally type php artisan app:install

Context

Your Environment

  • Version used:

  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1): PHP 7.2

  • Server type and version:

  • Operating System and version:
    Windows 10

Logging In Not Possible Error SQLSTATE[23505]: Unique violation

Logging In Not Possible Error SQLSTATE[23505]: Unique violation

When trying to login I also receive an error.
Steps:

  1. Open Site
  2. Authorize repositories on Github
  3. Error Message appears

SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "users_email_unique" DETAIL: Key (email)=( ) already exists. (SQL: insert into "users" ("name", "email", "github_username", "token", "api_token", "updated_at", "created_at") values ( , , mariobehling, 54c5f7008309c2cf0b2530f371be959af06c84cd, hiTbE0JlhKjUDp1xQNXQ6WclBR9BvJdZq9sSJlUL3kqYRxh9oQYgdlG08Y1o, 2020-06-29 09:48:59, 2020-06-29 09:48:59) returning "id")

Website is not working

Expected Behavior

The website should load without any error.

Current Behavior

Earlier , Orgmanager was deployed to heroku by @pranavkarthik10 at https://orgmanager.herokuapp.com.
But, currently the app is not loading in the above website.

Please refer ss for further info.
091DA427-331F-4507-992A-1B13BFD6A87B

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:

  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):

  • Server type and version:

  • Operating System and version:

  • Link to your project:

Fix Travis CI deployment

Travis is currently not working. Please make it work using the repository hosted at the FOSSASIA org.

Orgmanager does not show all orgs it has access to

When a user gives access to his/her orgs all orgs should show up on the dashboard. However currently only three orgs show up, e.g. FOSSASIA does not show up even though the system definitely has access.

Screenshot from 2020-07-05 23-48-37

Currently orgmanager is not working/not hosted

Expected Behavior

There should be a hosted version of the orgmanager deployment which is fully functional, which the current codebase is not.

Current Behavior

The current code is not hosted anywhere and the code will not function properly when deployed.

Possible Solution

We need to fix the code thoroughly and host it so it is available for fossasia to use.

Do you want to work on this issue?

  • Yes

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.