-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
6,719 additions
and
9,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
.env | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
.env | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ To learn how to use react, all the documentation for that is on <https://faceboo | |
|
||
1. Install packages by running `npm install`; | ||
|
||
1. Rename sample.env to .env; | ||
1. Rename sample.env to .env; (fill in the contentful secrets by requesting them from ITcrowd) | ||
|
||
1. Fill in the Contentful space_id and token; | ||
|
||
|
@@ -26,22 +26,28 @@ Also check <http://localhost:3000/?internal=true> to see the quotes and board ad | |
|
||
Put the transpiled js, html and css files in the dist/ folder: | ||
|
||
``` bash | ||
```bash | ||
npm run build | ||
``` | ||
|
||
Simply copy over the dist/ folder to the server to deploy. | ||
|
||
On Linux this should be done by using: | ||
|
||
``` bash | ||
```bash | ||
scp -r dist/* svsticky.nl:/var/www/commit/radio.svsticky.nl | ||
``` | ||
|
||
When on Windows you need to use an SFTP client to connect to: | ||
|
||
``` bash | ||
```bash | ||
sftp://[email protected] | ||
``` | ||
|
||
That's it. Happy hacking. | ||
|
||
# New in version 2 (#Changelog) | ||
|
||
- removed isomorpic fetch (for the built in fetch in modern javascript) | ||
- removed all web pack configurations for vite as build tool. The webpack configuration did not support the latest Node.js version anymore. | ||
- added a page named "Teams", where all members of the github `svsticky` are displayed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Radio</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.jsx"></script> | ||
<script src="snow.js"></script> | ||
</body> | ||
|
||
</html> | ||
|
Oops, something went wrong.