Coder Social home page Coder Social logo

lucagoslar / sveltekit-payload Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2.77 MB

✍️ A template for your next Svelte project with an integrated CMS.

License: MIT License

Shell 2.82% JavaScript 17.16% Dockerfile 2.58% HTML 1.54% TypeScript 65.00% Svelte 9.13% SCSS 1.77%
cms histoire i18n payload prisma stories svelte sveltekit template trpc

sveltekit-payload's Introduction

sveltekit-payload

Everything you need to build a Svelte project with Histoire, typesafe-i18n, Prisma and trpc.

Developing

Make sure to create a copy of .env.example with the name .env and adapt it to your requirements before running the application.

# install dependencies
npm i

# apply db migrations to db
npx prisma migrate dev

# run the database
docker-compose up -d mongo

# run histoire (isolated components)
npm run story:dev

# or run the development server
npm run dev

# run environment in nodemon if you find yourself working on payload collections/ globals since they are only mounted when server is started - however the rest will update automatically with vite and webpack
npm run dev:payload

Building

You may build for any target wanted. However, this project is preconfigured to operate on Docker. Similar to before, create a copy of .env.example. However, name it .env.production this time. Take into consideration that your application will use port 3000 in production.

# build and run the image
docker-compose up --build

sveltekit-payload's People

Contributors

lucagoslar avatar

Stargazers

 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.