Skip to content

Alko products as an API! a.k.a Alkon tuotetietokanta rajapintana.

License

Notifications You must be signed in to change notification settings

villeristi/alko-product-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alko Product API

license

Alko products as an API! A.k.a Alkon tuotetietokanta rajapintana.

Built with:

Getting started

  1. Be sure you have Yarn installed globally.
  2. Clone the repo & run yarn from the project root
  3. Copy .env.example to .env
  4. import product-catalog (you can find the up-to-date-catalog here) with yarn importData path/to/catalog.xls

Available commands

yarn importData

Imports local .xls-file to DB.

yarn start

Runs Babel watch-command & starts server on http://127.0.0.1 on PORT specified in .env -file (defaults to 8080, http://127.0.0.1:8080).

Note! To start debugging (on DEV), start the app on Linux / OSX with DEBUG=alko-product-api yarn start and on Windows with set DEBUG=alko-product-api yarn start

yarn lint

Lints JS-files inside /src directory

yarn build

Transforms ES6-syntax and builds (+minifies) the project to /build directory.

About

Alko products as an API! a.k.a Alkon tuotetietokanta rajapintana.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published