A simple SvelteKit starter template for "JOUR 73361: Coding the News," a course taught at the City University of New York's Craig Newmark Graduate School of Journalism
- Click the green "Use this template" button on GitHub
- Clone your new repository to your computer
- Open the project in VS Code
- Open a terminal and run:
npm install
npm run dev- Open http://localhost:5173 in your browser
- Edit
src/routes/+page.svelteto customize your page
Your site will automatically deploy to GitHub Pages when you push to the main branch. To enable this:
- Go to your repository Settings > Pages
- Under "Source", select GitHub Actions
That's it! Every push to main will automatically build and deploy your site to https://<your-github-username>.github.io/<your-repository-name>/
This template includes a Storybook documentation app that demonstrates every component and the core SvelteKit patterns used in this project.
It is published alongside the main site at palewire.github.io/cuny-jour-static-site-template/storybook/.
When you make a page based on the storybook will publish at https://<your-github-username>.github.io/<your-repository-name>/storybook/
npm run storybook