-
Notifications
You must be signed in to change notification settings - Fork 47
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
[WIP] feat: expressjs framework #784
base: main
Are you sure you want to change the base?
Conversation
056fbc1
to
8afa87e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial self review
You can use this key to specify any dependencies required for your ExpressJS | ||
application. In the following example we use it to specify ``libpq-dev``: | ||
|
||
.. code-block:: yaml | ||
parts: | ||
expressjs-framework/dependencies: | ||
stage-packages: | ||
# list required packages or slices for your ExpressJS application below. | ||
- libpq-dev | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bug with installing any runtime dependencies (conflicting lib directory). See Matrix thread: https://matrix.to/#/!NPPCseDHKRvSBMUEXN:ubuntu.com/$upouJFvo8bjWS08ZNTe9yDtELNuVPh4qbs-ue3vEbbM?via=ubuntu.com&via=matrix.org
- app/static | ||
Some files/directories, if they exist, are included by default. These include: | ||
``<rock name>``, ``app.js``, ``migrate``, ``migrate.sh``, ``migrate.py``, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check migrate related files.
docs/tutorial/code/expressjs/app.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is autogenerated by express-generator
with the addition of the timeRouter
for tutorial's sake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by express-generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by express-generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated by express-generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add link to documentation on libs that are required on charm integrations (e.g. pg)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's review this extension against fastAPI and go and make sure they are aligned in approach please :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I took a brief look at what's in the tutorial so far, and I left two comments.
I have some other comments that I excluded because they will affect all of the tutorials. I'd rather keep the set of tutorials consistent for now and update them all in one go.
Adds support for ExpressJS framework.
Key Decisions
bare
and24.04
only. Drop support for 22.04 (jammy)??
operator commonly used in JS projects. This means that the projects initialized withexpress-generator
tooling (assumed to be the case) would not work.expressjs-framework/install-app > stage-packages
part.expressjs-framework/runtime
exists to cater to apt packages, since slices and apt packages cannot be used together by design. See [wishlist] separate stage-packages and stage-slices #785.lib
directory of apt/slice installs. Remove the offering until the issue is resolved. See different contents or permissions error #790.npm-include-node
andnpm-node-version
fields.app/
directory.app
path (e.g. .env files)