a restful beer API using OpenBeerDB data
- NodeJS (6+ recommended).
- NPM (3+ recommended).
- MYSQL database (to import migration files), or any database but you will have to adapt migrations scripts.
-
Download the source code or clone this git repository.
-
install dependencies :
npm install
oryarn
in root project folder -
edit the configuration file in
src/config/config.json
to match your needs. -
to run server in watch mode for development, use
npm run dev
. -
to build server for deployment, use
npm run build
. -
to generate documentation, use
npm run make-doc
.
To initialize database, use the raw SQL migration file in brewAPI.sql.zip
, it contains all database tables and generation code in MySQL syntax.
You can modify database connection settings in src/config/db-config.json
.
if you want to modify only documentation, change comments in source code, generate documentation with the above command and commit changes on master branch with a commit message starting with:
[DOC] Your message here
.
to edit Doc header, just edit the apidoc_intro.md file.
Documentation code is generated using apidoc, it is currently hosted on github pages and can be found at :