-
Notifications
You must be signed in to change notification settings - Fork 0
site documentation #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
site documentation #127
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,54 +1,52 @@ | ||
|  | ||
|
|
||
| # Creative Code Berlin Website | ||
| # Creative Code Berlin website | ||
|
|
||
|
|
||
| Welcome to the Creative Code Berlin website source code, you can visit our website [creativecode.berlin](http://creativecode.berlin) | ||
| Welcome to the Creative Code Berlin website source code. You can view the site at [creativecode.berlin](http://creativecode.berlin) | ||
|
|
||
| ## Build and run locally | ||
|
|
||
| ## Adding Artworks | ||
| After cloning the repo, follow these steps: | ||
|
|
||
| Add the generated JSON generated to the [project.js file](/assets/projects.js). | ||
| We must host ShaderToy sketches ourselves since 2026. [Here's how to do it](docs/shadertoy.md). | ||
| ```shell | ||
| # Install dependencies | ||
| npm install | ||
|
|
||
| # Start development server | ||
| npm run dev | ||
| ``` | ||
|
|
||
| ## Development Instructions | ||
| 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. | ||
|
|
||
|
|
||
| Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more about nuxt.js. | ||
|
|
||
| ## Setup | ||
| ## Netlify auto-deploy | ||
|
|
||
| Make sure to install the dependencies: | ||
| 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). | ||
|
|
||
| ```bash | ||
| # npm | ||
| npm install | ||
| ``` | ||
| 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. | ||
|
|
||
| ## Development Server | ||
| Merging the PR to master deploys the changes on the live website. | ||
|
|
||
| Start the development server on `http://localhost:3000`: | ||
| 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). | ||
|
|
||
| ```bash | ||
| # npm | ||
| npm run dev | ||
| ``` | ||
| ## Adding artworks | ||
|
|
||
| ## Production | ||
| Add the generated JSON generated to the [project.js file](/assets/projects.js). | ||
| We must host ShaderToy sketches ourselves since 2026. [Here's how to do it](docs/shadertoy.md). | ||
|
|
||
| Build the application for production: | ||
|
|
||
| ```bash | ||
| # npm | ||
| npm run build | ||
| ``` | ||
| ## More info on Nuxt | ||
|
|
||
| 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). | ||
|
|
||
| Locally preview production build: | ||
| 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. | ||
|
|
||
| ```bash | ||
| # npm | ||
| You can build and view the site's production version locally like so: | ||
|
|
||
| ```shell | ||
| npm run build | ||
| npm run preview | ||
| ``` | ||
|
|
||
| Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. | ||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.