Skip to content

Commit 9973c95

Browse files
committed
site documentation
1 parent 60a8bac commit 9973c95

2 files changed

Lines changed: 27 additions & 42 deletions

File tree

README.md

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,52 @@
11
![Creative Code Berlin Logo](https://creativecode.berlin/logo.svg)
22

3-
# Creative Code Berlin Website
3+
# Creative Code Berlin website
44

55

6-
Welcome to the Creative Code Berlin website source code, you can visit our website [creativecode.berlin](http://creativecode.berlin)
6+
Welcome to the Creative Code Berlin website source code. You can view the site at [creativecode.berlin](http://creativecode.berlin)
77

8+
## Build and run locally
89

9-
## Adding Artworks
10+
After cloning the repo, follow these steps:
1011

11-
Add the generated JSON generated to the [project.js file](/assets/projects.js).
12-
We must host ShaderToy sketches ourselves since 2026. [Here's how to do it](docs/shadertoy.md).
12+
```shell
13+
# Install dependencies
14+
npm install
1315

16+
# Start development server
17+
npm run dev
18+
```
1419

15-
## Development Instructions
20+
This renders the site locally. You can browse it at `http://localhost:3000`. The server has hot reloading, so your changes are reflected immediately in the browser.
1621

1722

18-
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more about nuxt.js.
1923

20-
## Setup
24+
## Netlify auto-deploy
2125

22-
Make sure to install the dependencies:
26+
If you want to publish any changes, create a new branch and work on that. Push the branch to GitHub and create a Pull Request (PR).
2327

24-
```bash
25-
# npm
26-
npm install
27-
```
28+
The Netlify integration will run "checks" in the PR, which include creating a pre-release preview. You can view this at `https://deploy-preview-NNN--vigilant-edison-dfd992.netlify.app`, where NNN is the PR number. Unfortunately this only happens once; if you push additional commits to the PR, the preview is not updated.
2829

29-
## Development Server
30+
Merging the PR to master deploys the changes on the live website.
3031

31-
Start the development server on `http://localhost:3000`:
32+
The Netlify actions are triggered automagically through the Netlify App, which is configured under the repository's [Settings / GitHub Apps](https://github.com/CreativeCodeBerlin/creativecode.berlin/settings/installations).
3233

33-
```bash
34-
# npm
35-
npm run dev
36-
```
34+
## Adding artworks
3735

38-
## Production
36+
Add the generated JSON generated to the [project.js file](/assets/projects.js).
37+
We must host ShaderToy sketches ourselves since 2026. [Here's how to do it](docs/shadertoy.md).
3938

40-
Build the application for production:
4139

42-
```bash
43-
# npm
44-
npm run build
45-
```
40+
## More info on Nuxt
41+
42+
The site uses Vue with server-side rendering via Nuxt. More info on Nuxt: [Introduction](https://nuxt.com/docs/4.x/getting-started/introduction) and [Deployment](https://nuxt.com/docs/4.x/getting-started/deployment).
4643

47-
Locally preview production build:
44+
The short of it is that the site is authored like a dynamic single-page app built in Vue, except pages are pre-rendered by Nuxt on the server side for speed and static joy. The client-side dynamic fun begins in the `onMounted` hook in the Vue files.
4845

49-
```bash
50-
# npm
46+
You can build and view the site's production version locally like so:
47+
48+
```shell
49+
npm run build
5150
npm run preview
5251
```
5352

54-
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

public/_redirects

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)