-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR for docs [renewed] #220
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ Google Summer Of Code Project under CCExtractor Development | |
[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/ccextractor/Rekognition/blob/master/LICENSE) | ||
|
||
--- | ||
![bannerimage](https://github.com/CCExtractor/Rekognition/banner.png) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. image hasn’t been pushed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. create a folder named assets and move the image there |
||
This project aims at providing a free alternative to Amazon Rekognition services. | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
Table of contents: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a link to contributing.md in readme |
||
- [Contributing to Rekognition](#Contributing-to-Rekognition) | ||
- [Making a PR](#making-a-pr) | ||
- [Asking for help](#asking-for-help) | ||
- [Development environment setup](#Development-environment-setup) | ||
|
||
As beginners, navigating the codebase and finding your way out of the documentation can become difficult. This page will help you understand everything about contributing to howdoi and the best practices in open source as well. | ||
|
||
## Contributing to Rekognition | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should start up with setting up dev environment locally Point them to existing APIs and ask them to try these APIs for themselves. If they find any bugs in the process and/or can come up with a feature request ask them to create an issue for the same Then point to them the already open issues and provide guidance on how to submit a PR |
||
- Follow the page Setting up the development environment for setting up the development environment for Rekognition. | ||
- Finding your first issue | ||
- Go to issues in the Rekognition repo. | ||
- Find the issues which you might be interested to work on. Or, you can also come up with your own ideas of improving the code. | ||
- After finding the issue you are interested in : If the issue is an existing one, comment on the issue and ask for it to be assigned to you. Or, if the issue is unlisted and new , create a new issue and fill every information needed in the issues template provided by howdoi and ask for it to be assigned to you. | ||
- After receiving confirmation, start working on the issue and whenever and wherever help is needed, comment on the issue itself describing your query in detail. | ||
- A good guide on how to collaborate efficiently can be found here. | ||
|
||
## Making a PR | ||
- After you have worked on the issue and fixed it, we need to merge it from your forked repository into the Rekognition repository by making a PR. | ||
- Each PR made should pass all the tests. We have new Github Actions in place for CI/CD. | ||
- Once your commit passes all the tests, make a PR and wait for it to be reviewed and merged. | ||
|
||
|
||
## Asking for help | ||
- At times, help is needed while solving the issue. We recommend the following step for asking for help when you get stuck: | ||
- Read from our documentation to see if your question has already been answered. | ||
- Comment on the issue you are working on describing in detail what problems you are facing. | ||
- Make sure to write your query in detail and if it is a bug, include steps to reproduce it. | ||
- If you are not working on any issue and have a question to be answered, open a new issue on Github and wait for a reply. | ||
|
||
# Development Environment setup | ||
## Install python 3.6 | ||
``` | ||
|
@@ -6,14 +36,29 @@ sudo apt-get update | |
sudo apt-get install python3.6 | ||
``` | ||
|
||
## For MacOS: | ||
``` | ||
brew install python | ||
``` | ||
|
||
|
||
## Clone the repository and setup venv | ||
``` | ||
git clone https://github.com/pymit/Rekognition | ||
git clone https://github.com/CCExtractor/Rekognition | ||
cd Rekognition | ||
./setup.sh | ||
../setup.sh | ||
source myenv/bin/activate | ||
``` | ||
|
||
### For MacOS: | ||
git clone https://github.com/CCExtractor/Rekognition | ||
./setup.sh | ||
cd Rekognition | ||
python3 -m virtualenv myenv | ||
source $PWD/myenv/bin/activate | ||
pip install -r ../requirements.txt | ||
|
||
NOTE: Sometimes an error "permission denied" may be shown when you try to run `setup.sh`. For this, try: `chmod 755 setup.sh` in root directory to change permissions. | ||
*** | ||
## Postgres setup | ||
|
||
|
@@ -30,16 +75,20 @@ source myenv/bin/activate | |
ALTER USER admin CREATEDB; | ||
ALTER DATABASE pmr OWNER TO admin; | ||
*** | ||
## Postgres setup for MacOS | ||
|
||
## ReactJS setup for frontend | ||
|
||
git clone https://github.com/pymit/RekoUI | ||
cd RekoUI | ||
sudo apt install npm | ||
sudo npm install -g npm@latest | ||
npm install | ||
npm start | ||
*** | ||
brew update | ||
brew install postgresql | ||
brew services start postgresql | ||
psql postgres | ||
CREATE DATABASE pmr; | ||
CREATE USER admin WITH PASSWORD 'admin'; | ||
ALTER ROLE admin SET client_encoding TO 'utf8'; | ||
ALTER ROLE admin SET default_transaction_isolation TO 'read committed'; | ||
ALTER ROLE admin SET timezone TO 'UTC'; | ||
ALTER USER admin CREATEDB; | ||
ALTER DATABASE pmr OWNER TO admin; | ||
*** | ||
|
||
## Downloading the models | ||
##### current directory Rekognition | ||
|
@@ -107,3 +156,7 @@ python manage.py runserver 8000 | |
Django app can be accessed at http://localhost:8000 | ||
|
||
ReactJS app can be accessed at http://localhost:3000 | ||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add usage command for each API