Svelte News App — Frontend
A fullstack application built with Svelte/Sapper on the frontend and Node/Express on the backend.
Demo    Backend
This repo demonstrates almost everything you need to know to build a complete fullstack application using Svelte/Sapper and Node/Express. This demo covers things like:
- Authentication/Authorization with JWT
- Maintaining logged-in user data with sessions and cookies
- Routing
- Communicating with a backend API
- Handling errors
- Pagination
- Loading states
- Preloading data
- Prefetching data
- Rendering nested components recursively
- More stuff
Running the demo
- Install and run the backend project
- Download this repo
- Create
.env
in the root directory - Add
API_BASE_URL=http://localhost:5000
(assuming that the backend will run onlocalhost:5000
) - Run
npm install
- Run
npm run dev
To build it and run it in production mode:
- Run
npm run build
- Run
npm run start