Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

poi with koa.js #384

Closed
eaststrong opened this issue Feb 25, 2018 · 2 comments
Closed

poi with koa.js #384

eaststrong opened this issue Feb 25, 2018 · 2 comments

Comments

@eaststrong
Copy link

How could I use koa.js with poi?

@mblarsen
Copy link
Collaborator

mblarsen commented Feb 25, 2018

tl;dr - poi is not related to backend, koa is backend


poi is mean for quickly getting started with the front-end application. Basically building or bunding all your javascript, css and other resources.

Koa.js is a backend framework that you would typically use to serve data through an API (REST or GraphQL) and perhaps handle user authorization, etc. For this there is no build steps involved. So really nothing for poi to do.

They can live side by side in the same repo. E.g. you could have the index.js as the entry point for the poi build and then a server.js the entry point for your Koa backend.

Eg. you could use this https://github.com/jeffijoe/koa-es7-boilerplate as your backend and then use poi to bulild your frontend.

@egoist
Copy link
Owner

egoist commented Feb 25, 2018

Yep, if you want to work with your backend API, you may use https://poi.js.org/#/home?id=proxy-api-request

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants