https://github.com/fernando24164/flask-snowpack
https://github.com/fernando24164/flask-snowpack
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fernando24164/flask-snowpack
- Owner: fernando24164
- Created: 2021-12-08T17:16:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T17:25:56.000Z (over 3 years ago)
- Last Synced: 2025-01-28T02:44:21.343Z (4 months ago)
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Dashboard
Small demo to test Flask with React frontend and Snowpack to create bundle
## How to run on localhost
First install dependencies:
```sh
npm install
```To run in dev mode mode:
```sh
npm start
```Then go to http://localhost:8080
To create a production build:
```sh
npm run build
```## Testing
To run unit front tests:
```sh
npm test
```To run backend test:
```sh
pytest
```## Run in local
In the folder there is a shell script to run a local server
```sh
npm run build./run.sh
```Then open a browser on http://127.0.0.1:5000/