https://github.com/pararell/sveltekit-blog
  
  
    Latest SvelteKit v.2 blog - can create page or blog with Markdown or Jodit(wysiwyg editor) - Created pages and blogs are in header and they are server-side rendered for SEO and client-side for interaction  
    https://github.com/pararell/sveltekit-blog
  
blog express jwt markdown rxjs ssr svelte svelte-blog svelte-i18n svelte3 sveltekit sveltekit-blog sveltekit-example wysiwyg
        Last synced: 6 days ago 
        JSON representation
    
Latest SvelteKit v.2 blog - can create page or blog with Markdown or Jodit(wysiwyg editor) - Created pages and blogs are in header and they are server-side rendered for SEO and client-side for interaction
- Host: GitHub
- URL: https://github.com/pararell/sveltekit-blog
- Owner: pararell
- License: mit
- Created: 2021-05-16T12:51:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T07:07:07.000Z (about 1 year ago)
- Last Synced: 2024-09-29T12:02:50.543Z (about 1 year ago)
- Topics: blog, express, jwt, markdown, rxjs, ssr, svelte, svelte-blog, svelte-i18n, svelte3, sveltekit, sveltekit-blog, sveltekit-example, wysiwyg
- Language: Svelte
- Homepage: https://miroslavsmrtic.sk/
- Size: 1.64 MB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # Blog made with SvelteKit
## Svelte blog which using Markdown, FE Svelte - SvelteKit, BE Express + SQLite
Pages and blogs are dynamically created with Markdown or Joddit and they are server-side rendered then - for SEO and client-side for interaction. Option for only HTML without Javascript was added - header will work with language switcher 
Set .env in main directory and in /server
- adminEmail - email which can add/edit/remove pages and blogs
- disqusSrc - optional to have comments from disqus
- cookieSecret, cookieName, TOKEN_KEY - random string
- works with Node.js v.18+
npm run build
cd server npm run dev
Server and Client run on the same port - it should check if the build exist and if yes, it will include SSR Sveltekit
` if (fs.existsSync('../build/handler.js')) { const {handler} = await import('../build/handler.js'); app.use(handler); }`
- Use **jsonwebtoken** for the Authorization
- Use **express-session** for the session management in Express
- Use language switch with **svelte-i18n**
- Pages and Blogs creation with **marked**
  
  test - privatelibrary.eu
  
  ## With Docker
   
   
  - build docker: docker build -t sveltekit-blog:0.5.1 . (docker build --platform linux/amd64 -t sveltekit-blog:0.5.1 .)
  - from dockerhub: docker pull pararel/sveltekit-blog:0.5.1
  - docker run -it -d -v $PWD/server/database:/usr/src/app/server/database --env-file $PWD/.env --network=host sveltekit-blog:0.5.1
    
  
  