leankit-labs / autohost Goto Github PK
View Code? Open in Web Editor NEWConvention-based, opinionated HTTP server library based on express. Lovingly ripped from the guts of Anvil.
License: MIT License
Convention-based, opinionated HTTP server library based on express. Lovingly ripped from the guts of Anvil.
License: MIT License
If you try to register an external module with an NPM module that has a namespace (i.e. @lk/core-taskboard-api), autohost will fail to register it with an error.
This configuration:
"host": {
"modules": [
"autohost-logging-collector",
"autohost-pubsub",
"@lk/core-taskboard-api"
]
}
Results in this error:
Cannot find module '/dev/bunk/autohost-project/@lk/core-taskboard-api'
A simple workaround for this issue to is to use a relative file path instead:
"host": {
"modules": [
"autohost-logging-collector",
"autohost-pubsub",
"node_modules/@lk/core-taskboard-api"
]
}
Saw this today while pairing with @ifandelse. Didn't have time to track it down but think it's likely a race condition/timing related issue. AH should insulate apps from having to worry with this and prevent the error from getting thrown. Putting an issue in so it doesn't get forgotten.
By default, AH provides an API prefix for all resource routes to prevent collision issues. When using an empty API prefix (effectively hosting static resources and API calls at the same base URL), AH should register paths with express to avoid collisions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.