Koa REStful API. Built in Typescript. Continuous Integration / Continuos Delivery. SOLID Principles. To be deployed on Netlify.
It'll serve traditional and popular Spanish idioms.
Node.js / Koa / Typescript / CI/CD / REST
git clone https://github.com/isaacBejarano/serverless-koa-api.gitnpm install
npm run jam
npm run serve
npm run ntl:build
npm run ntl:serve
npm run jam && npm run ntl:build- then stage, commit and push to production's branch, as specified in Netlify Deployment
npm run jam && npm run ntl:build- then stage, commit and push to production's branch
netlify deploy --prod
NOTE: Don't forget to specify the "publish" directory in the Netlify UI or in your local netlify.toml file
https://refranero-api.netlify.app
https://refranero-api.netlify.app/.netlify/functions/api
- /slangs
- /months
- /populars
Example: https://refranero-api.netlify.app/.netlify/functions/api/populars
method: 'GET'
'Access-Control-Allow-Origin': '*'
NOTE: The Headers will eventually become private with restricted origin policy