• Stars
    star
    161
  • Rank 232,164 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

openFDA web site.

open.fda.gov

openFDA is a research project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.

Do not rely on openFDA to make decisions regarding medical care. Always speak to your health provider about the risks and benefits of FDA-regulated products. We may limit or otherwise restrict your access to the API in line with our Terms of Service

Contents

This repository contains the main open.fda.gov website.

Running the site

npm run dev

Running the site in Docker

docker build -t open.fda.gov .

docker run -p 3000:3000 open.fda.gov

The website will then be available at http://localhost:3000/

Description of project structure

/actions

Redux actions go here. They describe all the possible state changes of the application

/aria

Any commonly used aria attributes can go here, like hiding an element from a screen reader

/components

Stateless, functional react components go here. A function component should not have any state, and will always render the same thing if provided with a given set of props. Some routes have their own components folders, that provide components only used in that route. Most components should go here though

/containers

Container components go here. These react components are reduxified. They communicate with the store and dispatch actions, passing down props to their child components. This way we minify how many components have state, as well as having a tightly controlled, reliable way of describing application state

/css

CSS is written with SCSS and is processed by gatsby-plugin-sass when the project is built and run locally. Overarching styling files are in the /css folder while component specific styling is in the /css/componenets/ folder. Individual SCSS files will be referenced at the component level.

/data

Any hard coded data that is used globally goes here. Some routes have their own data folder that serves the same purpose, but is local to that route

/pages

Routes and posts for the page. The folder structure in here determines the routes for the site. All blog posts go in blog. Static assets like images, fonts, etc, should also go here

/stores

Our redux stores for the site

/styles

Any commonly inlined styles should go here. It really should only be the style reset

/types

Flow types that are commonly used should go here

/utils

Handy openFDA specific utility functions like fetchQuery or randColor

/wrappers

Gatsby uses either a html or md wrapper when rendering content. In our case, we exclusively use the md wrapper

Other things to note:

See details about testing at ./TESTING.md

config.toml can be used to declare global variables, if needed

The webpack configuration can be tweaked using gatsby.config.js, which allows us to override the default gatsby configuration

More Repositories

1

openfda

openFDA is a research project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.
Python
568
star
2

precisionFDA

precisionFDA is a cloud based platform that provides an environment where the community can test, pilot, and benchmark new approaches to validating their next-generation sequencing (NGS) analysis pipelines. PrecisionFDA offers community members a secure and independent work area where, at their discretion, their bioinformatics tools or data can be kept private or shared with the precisionFDA participants.
TypeScript
63
star
3

ecglib

C++
36
star
4

fda-hive

FDA High-performance Integrated Virtual Environment (HIVE)
C++
35
star
5

CiPA

R
32
star
6

VAERS-Annotations

Vaccine Adverse Events Annoted
12
star
7

naloxone-app-competition

6
star
8

Healthy-Citizen-Code

JavaScript
5
star
9

aecgviewer

Python
5
star
10

PKView

JavaScript
5
star
11

aecg-python

Python
3
star
12

SOURCE

Jupyter Notebook
3
star
13

Ribosome-Profiling

Python
3
star
14

ETHER

Python
3
star
15

TCPro

2
star
16

Mechanistic-COVID-19-Model

R
2
star
17

PANACEA

2
star
18

Mechanistic-PK-PD-Model-to-Rescue-Opioid-Overdose

R
2
star
19

Identifying-Gene-Variants-of-Viral-Interactors

Python
1
star
20

Cancer-CoCoPUTs

Python
1
star
21

Termset-Generator

Python
1
star
22

SHAPE

TypeScript
1
star
23

SampPick

Python
1
star
24

amia-2017-dataed-hackathon

1
star
25

visualizing-affinities

Python
1
star
26

Composite-eDish-Plot

Shiny app for Composite eDISH plot and eDISH migration table
R
1
star
27

Neural-Networks-based-Natural-Language-Processing

Python
1
star