Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radosz99/pick-up-games-frontend
React frontend of the Matcher application.
https://github.com/radosz99/pick-up-games-frontend
basketball frontend react
Last synced: 7 days ago
JSON representation
React frontend of the Matcher application.
- Host: GitHub
- URL: https://github.com/radosz99/pick-up-games-frontend
- Owner: radosz99
- Created: 2022-07-27T13:50:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T15:49:26.000Z (about 2 years ago)
- Last Synced: 2023-04-27T17:42:55.740Z (over 1 year ago)
- Topics: basketball, frontend, react
- Language: JavaScript
- Homepage: https://matcher.pl/
- Size: 1.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![example workflow](https://github.com/radosz99/pick-up-games-frontend/actions/workflows/deploy_actions.yaml/badge.svg)
# Deployment
## Prerequisites
- Node 14.x,
- npm 6.x,
- Python 3.8.x, pip, virtualenv package (optionally if we want to deploy on server via Python script).## Prepare build
```
$ npm ci
$ npm run build
```## Run locally
```
$ npm install -g serve
$ serve -s build
```## Deployment on server
Python script is preferable.### Docker
SSH to server and then:
```
$ docker build -t client .
$ docker run -d -p 3000:3000 client
```### Python script
It is required to pass 3 arguments to the script:
1. Path to the `build/` directory, either relative or absolute,
2. IP address of the deployment server,
3. Password for root user on the deployment server.```
$ virtualenv venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python deploy.py
```