https://github.com/albertyw/pharmadataassociates
PDA Website
https://github.com/albertyw/pharmadataassociates
base-flask flask hacktoberfest pda-website
Last synced: 3 months ago
JSON representation
PDA Website
- Host: GitHub
- URL: https://github.com/albertyw/pharmadataassociates
- Owner: albertyw
- Created: 2016-07-18T07:51:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2026-02-20T21:04:10.000Z (4 months ago)
- Last Synced: 2026-02-21T01:50:55.207Z (4 months ago)
- Topics: base-flask, flask, hacktoberfest, pda-website
- Language: HTML
- Homepage: https://www.pharmadataassociates.com/
- Size: 7.2 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pharma Data Associates Website
[](https://drone.albertyw.com/albertyw/pharmadataassociates)
[](https://qlty.sh/gh/albertyw/projects/pharmadataassociates)
[](https://qlty.sh/gh/albertyw/projects/pharmadataassociates)
[](https://www.varsnap.com/project/8aa438e7-9242-485b-ac1b-c0bab8630069/)
https://www.pharmadataassociates.com/
PDA Website V2
Development
-----------
### Setup
Using [python venv](https://docs.python.org/3/library/venv.html) and
[direnv](https://github.com/direnv/direnv)
```bash
python3.13 -m venv env
printf "source env/bin/activate\nunset PS1\n" > .envrc
direnv allow
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.13
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
npm test
# Deployment
ssh ubuntu@pharmadataassociates.com 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
```