Git Product home page Git Product logo

svelte-blogger's Introduction

svelte-blogger

This is a blog built with sveltekit, tailwind and daisyUI, made to be used as my personal blog.

This app also use graphql and use markdown to write posts.

screenshots

home

dark theme

dark

light theme

light

code block with syntax highlight with JetBrains Mono font

code

output code

output

How use it

Just fork or clone the repository, you will need a graphql api, I decide to not implemeted my own so i personally use GraphCMS, and it is so easy!

My GraphCMS schema looks like it:

GraphCMS Model

After creating just grab your host uri and your token and set as env

VITE_GRAPHCMS_HOST=

Now that you have graphql configured enter in config folder in src

You need to change the base.ts file with your configs

export const about = {
	name: "your name",
	img: "your profile image",
	description: "your description",
	skills: [/*array of objects with props -> name: string, percent: number*/],
	tags: [/*string array*/]
};

export const social = {
	github: "your github username",
	linkedin: "your linkedin username",
	instagram: "your instagram username",
};

export const site = {
	title: 'site title,
	navTitle: 'navbar title',
	lang: 'lang "en-US" or "pt-BR"'
};

Now with everything configured, follow steps bellow to start in dev or to build de project, is very simple and fast to deploy in vercel!

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

svelte-blogger's People

Contributors

lipej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.