GithubHelp home page GithubHelp logo

jbossoutreacharchive / certificate-generator-server-archive Goto Github PK

View Code? Open in Web Editor NEW
13.0 12.0 23.0 187 KB

An automatic certificate generator for events

Home Page: https://cert-gen-jboss.herokuapp.com/

License: GNU General Public License v3.0

Python 96.36% Shell 0.45% Dockerfile 2.83% Procfile 0.36%
django certificate-generation rest-api

certificate-generator-server-archive's Introduction

Certificate Generator Server

Codacy Badge Build Status Gitter

An automatic certificate generator for events according to multiple input files like csv, xlsx, numbers and shoots emails with generated certificates.

Setting up environment

  • Install pipenv
pip install pipenv
  • Create a pipenv
pipenv shell

As soon as the shell is ready,

  • Run the following command to install the dependencies
pipenv install

The above command will install all of the dependencies.

  • Set up environmental variables using:
cp .env.sample .env

Now edit .env and fill the generated .env file with your credentials to run it locally.

Running

python manage.py makemigrations api
python manage.py migrate
python manage.py runserver

To stop the server, press Ctrl + C and deactivate the virtual environment using deactivate command.

Running in docker

  1. Build image
sudo docker build . -t cert-gen-server:latest
  1. Run container
sudo docker run -d --name cert-gen cert-gen-server:latest
  1. If you want to add packages, you would need to get a shell as root:
sudo docker exec --it --user root cert-gen sh

# In docker container
apk add curl

Post setup instructions

Instead of adding new dependencies to requirements.txt, simply run:

pipenv install <package-name>

to install it inside pipenv and add it to Pipfile.

To lock the dependencies for deployment, run:

pipenv lock

Setting up project

1. Fork this project by clicking the Fork button on top right corner of this page.

2. Clone the repository by running following command in git:

$ git clone https://github.com/[YOUR-USERNAME]/certificate-generator-server.git

Contributing

1. Make reasonable changes.

2. Add all changes by running this command on the terminal/command prompt:

$ git add .

Or to add specific files only, run this command:

$ git add path/to/your/file

Make sure you replace path/to/your/file with the actual path to the file you want to add to the staging area.

3. Commit changes.

$ git commit -m "DESCRIBE YOUR CHANGES HERE"

4. Push your changes.

$ git push origin

5. Create a Pull Request by clicking the New pull request button on your repository page.

6. Always Squash your commits when sending the Pull request

NOTE Make sure that you include a desription of changes made by you.

Help

If you need any help anywhere in the process, you can always ask a question on our Gitter Chat.

License

This project is currently licensed under the GNU General Public License v3. i.e. we guarantee end users the freedom to run, study, share, and modify the software.

To obtain the software under a different license, please contact JBossOutreach.

certificate-generator-server-archive's People

Contributors

aashutoshrathi avatar dependabot[bot] avatar divyanshkul avatar isaac-philip avatar jatinkatyal13 avatar junron avatar jyuanq avatar keenwarrior avatar khukhunashvili avatar neeraj3029 avatar pilhuhn avatar piyush-sharma avatar prateekiiest avatar raghavawasthi avatar sidhyatikku avatar tanvi05 avatar titanmq avatar

Stargazers

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

Watchers

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

certificate-generator-server-archive's Issues

Heroku Link Error

Heroku link provided in the repository description doesn't seem to be working
Screenshot from 2020-07-23 14-18-19

Travis CI implementation

I would like to implement Travis CI, a hosted service which builds and tests projects on Github.

Create API docs

Create docs for the API in /api route. Docs should contain all the allowed methods and authentication techniques briefly.

create starter tasks

Create some beginner tasks that can help students work on the project.
To be done after #1.

Instructions to connect MySQL

We need to provide instructions in our README to connect our application to MySQL backend using the environment variables.

README.md requires changes

README.md requires the following updates:

  1. Step to activate the virtual environment is missing.
  2. The command which is presently provided to create virtual environment will create one using the Python installed in the system, which is always Python 2.7 in MacOS.

Models needs to be created

It is required to create models for the application to handle

  • Certificate storage
  • User management
  • Creating ACL for certificate issuing permission

Write a depoloy script

Create a python script the automatically deploys the application to heroku. You can use argparse library to create some command line arguments for the script like branch to deploy, heroku app name etc.

Learn more about heroku here

Codacy Unavailable

Integrate Codacy to supported projects. - JBoss Community

  • I've found that this repository is not integrated with Codacy. To help fix this issue, I'll be creating a PR.
  • I'll be adding Codacy badge for this repository
  • Task Link

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.