### Start Node Application Source: https://github.com/fda/openfda/blob/master/api/faers/README.md Execute this command to start the FAERS API server using Node.js. ```bash node api.js ``` -------------------------------- ### Install Node Modules Source: https://github.com/fda/openfda/blob/master/api/faers/README.md Run this command in your terminal to install the necessary Node.js dependencies for the FAERS API. ```bash npm install ``` -------------------------------- ### Query Food Events API Source: https://github.com/fda/openfda/blob/master/README.md Example of how to query the food event API for specific products and reactions. This uses the standard openFDA query syntax. ```shell curl -g 'http://localhost:8000/food/event.json?search=products.industry_name:"Soft+Drink/Water"+AND+reactions.exact:DEHYDRATION&limit=10' ``` -------------------------------- ### Query FAERS API Source: https://github.com/fda/openfda/blob/master/api/faers/README.md Use curl to send a GET request to the FAERS API endpoint to search for drug events related to 'humira'. ```bash curl localhost:8000/drug/event.json?search=humira ``` -------------------------------- ### Increase vm.max_map_count for Elasticsearch Source: https://github.com/fda/openfda/blob/master/README.md Instructions for Linux users to increase the vm.max_map_count system setting, which is required for Elasticsearch to start successfully. This command modifies the current setting and adds it to the system configuration. ```shell sudo sysctl -w vm.max_map_count=262144 echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf ``` -------------------------------- ### Download gflags googletest Source: https://github.com/fda/openfda/blob/master/openfda/res/README.md Use this command to download the gflags googletest Python script. ```bash curl -O http://python-gflags.googlecode.com/svn/trunk/tests/gflags_googletest.py ``` -------------------------------- ### Clone Repository for Windows Users Source: https://github.com/fda/openfda/blob/master/README.md Command for Windows users to clone the openFDA repository, specifically configuring git to handle line endings to circumvent potential Docker build issues on Windows. ```shell git clone https://github.com/FDA/openfda.git --config core.autocrlf=input ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.