Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertyw/pharmadataassociates
PDA Website
https://github.com/albertyw/pharmadataassociates
base-flask flask pda-website
Last synced: 2 months ago
JSON representation
PDA Website
- Host: GitHub
- URL: https://github.com/albertyw/pharmadataassociates
- Owner: albertyw
- Created: 2016-07-18T07:51:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T05:12:30.000Z (6 months ago)
- Last Synced: 2024-10-12T05:14:16.756Z (3 months ago)
- Topics: base-flask, flask, pda-website
- Language: HTML
- Homepage: https://www.pharmadataassociates.com/
- Size: 6.44 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pharma Data Associates Website
[![Build Status](https://drone.albertyw.com/api/badges/albertyw/pharmadataassociates/status.svg)](https://drone.albertyw.com/albertyw/pharmadataassociates)
[![Code Climate](https://codeclimate.com/github/albertyw/pharmadataassociates/badges/gpa.svg)](https://codeclimate.com/github/albertyw/pharmadataassociates)
[![Test Coverage](https://codeclimate.com/github/albertyw/pharmadataassociates/badges/coverage.svg)](https://codeclimate.com/github/albertyw/pharmadataassociates/coverage)
[![Varsnap Status](https://www.varsnap.com/project/8aa438e7-9242-485b-ac1b-c0bab8630069/varsnap_badge.svg)](https://www.varsnap.com/project/8aa438e7-9242-485b-ac1b-c0bab8630069/)https://www.pharmadataassociates.com/
PDA Website V2
Development
-----------### Setup (using [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/)):
```bash
mkvirtualenv pharmadataassociates -p python3.12
pip install -e .[test]
ln -s .env.development .env
npm install# Install shellcheck
# brew install shellcheck
# sudo apt-get install shellcheck
```### Spinning up the server:
```bash
npm run build:dev
python app/serve.py
```### Running tests:
```bash
ruff check .
mypy .
shellcheck --exclude=SC1091 bin/*.sh
coverage run -m unittest discover
npm test
```### CI/CD
This repo uses:
```bash
# Switch to python 3
pyenv local 3.12
pip install -e .[test]
ln -s .env.development .env# Test
ruff check .
mypy .
shellcheck --exclude=SC1091 bin/*.sh
coverage run -m unittest discover
coverage report
codeclimate-test-reporter
npm test# Deployment
ssh [email protected] pharmadataassociates/bin/deploy.sh
```### Building and starting the docker container
```bash
docker build -t pharmadataassociates:test .
docker run -t -i -p 127.0.0.1:5001:5000 pharmadataassociates:test
```Production
----------### Setup
Run this once on a new server to set up the web app:
```bash
bin/setup.sh
```### Deployment
Run this every time for a new commit to the repository:
```bash
bin/deploy.sh
```