Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pelias-api used as lib #1502

Open
stefanocudini opened this issue Nov 9, 2020 · 1 comment
Open

pelias-api used as lib #1502

stefanocudini opened this issue Nov 9, 2020 · 1 comment

Comments

@stefanocudini
Copy link

stefanocudini commented Nov 9, 2020

Use-cases

useful for creating a wrapper for pelias api

Attempted Solutions

I want use this module as npm lib like this way:

const app = require('pelias-api/app');

contents of index.js

but now receive this error, I think that could be solved easily

node index.js 
2020-11-09T14:17:54.309Z - warn: [pip] pip service disabled
2020-11-09T14:17:54.310Z - warn: [placeholder] placeholder service disabled
2020-11-09T14:17:54.310Z - warn: [language] language service disabled
2020-11-09T14:17:54.311Z - warn: [interpolation] interpolation service disabled
2020-11-09T14:17:54.311Z - warn: [libpostal] libpostal service disabled
2020-11-09T14:17:54.311Z - warn: [libpostal] libpostal service disabled
fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, open './public/apiDoc.md'
@stefanocudini
Copy link
Author

stefanocudini commented Oct 5, 2022

hi, I'm just created a simple generic solution in this PR #1640

stefanocudini added a commit to stefanocudini/pelias-api that referenced this issue Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant