Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radu-matei/spin-react-fullstack
https://github.com/radu-matei/spin-react-fullstack
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/radu-matei/spin-react-fullstack
- Owner: radu-matei
- License: apache-2.0
- Created: 2023-01-18T15:39:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T15:39:22.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T02:24:05.355Z (3 months ago)
- Language: JavaScript
- Size: 329 KB
- Stars: 3
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Spin, ReactJS, and TypeScript
This is a full-stack application written in ReactJS and TypeScript, running as
a Spin application.## Building and running locally
First, run `npm install` in the `api` and `frontend` directories, then run
`spin build` and `spin up`:```bash
$ spin build && spin up --follow-all
Executing the build command for component frontend: npm run build
Executing the build command for component api: npm run buildSuccessfully ran the build command for the Spin components.
Serving http://127.0.0.1:3000
Available Routes:
frontend: http://127.0.0.1:3000 (wildcard)
api: http://127.0.0.1:3000/api (wildcard)
```## Deploying to Fermyon Cloud
Now that the application is built, we can deploy it to Fermyon Cloud:
```bash
$ spin deploy
Uploading spin-fullstack-react version 0.1.0+r15d9879d...
Deploying...Available Routes:
frontend: https://spin-fullstack-react-ejbqu8o9.fermyon.app (wildcard)
api: https://spin-fullstack-react-ejbqu8o9.fermyon.app/api (wildcard)
```You can see a deployed instance of this application at .