Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
The website is deployed on heroku and can be accessed on the following url: https://kanban-app-cs162.herokuapp.com/
/web
contains application code.
/web/static
css files.
/web/templates
html files.
/web/__init__.py
project initializer file.
/web/auth.py
routes related to authorization/authentication.
/web/config.py
different configurations based on running environment (test/dev/prod).
/web/models.py
ORM mapping (from DB models to python classes) using SQLAlchemy.
/web/routes.py
application routes.
/unit_test
contains 25 unit tests in total. Tests for: registration, login, reset password, and kanban operations (todo, doing, done).
/migrations
directory used to control DB migrations, using Flask-migrate.
.env/example
contains all variables needed on your .env so the project runs on production or locally.
Procfile
used for heroku deployment.
Creation of virtualenv:
$ virtualenv -p python3 venv
If the above code does not work, you could also do
$ python3 -m venv venv
To activate the virtualenv:
$ source venv/bin/activate
Or, if you are using Windows - reference source:
$ venv\Scripts\activate
To deactivate the virtualenv (after you finished working):
$ deactivate
Install dependencies in virtual environment:
$ pip3 install -r requirements.txt
.env.example
is a file containing all the environment variables that you need to define in a .env
file for this project to run.
Start the server on a mac locally by running:
$ source venv/bin/activate
$ pip install -r requirements.txt
$ export FLASK_ENV=dev
$ export FLASK_APP=web
$ python3 -m flask run
To run the unit tests on mac use the following commands:
$ source venv/bin/activate
$ pip install -r requirements.txt
$ export FLASK_ENV=test
$ export SECRET_KEY='test-key'
$ python -m pytest unit_test
FAQs
Initializing flask project
We found that pykanban demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.