https://github.com/platformatic/composer-static-issue
https://github.com/platformatic/composer-static-issue
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/platformatic/composer-static-issue
- Owner: platformatic
- Created: 2024-02-21T14:36:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-21T14:41:17.000Z (about 2 years ago)
- Last Synced: 2025-02-16T18:39:05.822Z (about 1 year ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Platformatic Composer - Fastify Static Issue
## Running the example
First build the frontend app of the `service`
```
$ cd service
$ npm install
$ npm run build
```
Ensure that the app works as expected running `npm start` and then visiting `http://0.0.0.0:3042`
You should see a `Hello Foobar` text with a random image (Styled with bulma)
Then run the composer in another terminal window
```
$ cd composer
$ npm install
$ npm start
```
Then visit `http://0.0.0.0.3043/app` that should forward the request to the underlying `service` app.
You should see a blank page. In the Dev Console also you see that `http://0.0.0.0.3043/assets/index-xyz.js` returns a 404.