GithubHelp home page GithubHelp logo

ocluf / justship Goto Github PK

View Code? Open in Web Editor NEW
312.0 9.0 20.0 45.17 MB

A svelte 5 and sveltekit saas boilerplate. Including database, authentication, email, analytics, and landing page components.

Home Page: https://justship.today

JavaScript 3.72% TypeScript 39.35% CSS 0.09% HTML 21.11% Svelte 35.73%
daisyui drizzle posthog saas-boilerplate stripe svelte sveltekit tailwindcss turso typescript

justship's People

Contributors

creative-difficulty avatar ocluf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

justship's Issues

Add Dockerfile

I'm working on integrating a Dockerfile for Docker deployments. The Dockerfile I've created triggers a LibSQLError with the error URL_INVALID. It seems to be trying to establish a database connection during the build phase. Any tips on how to troubleshoot and fix this?

 => ERROR [builder 6/6] RUN npm run build                                                                                  10.5s
------                                                                                                                           
 > [builder 6/6] RUN npm run build:                                                                                              
0.660                                                                                                                            
0.660 > [email protected] build                                                                                                  
0.660 > vite build                                                                                                               
0.660                                                                                                                            
0.893 ▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
0.893 
0.893     tsconfig.json:2:12:
0.893       2 │   "extends": "./.svelte-kit/tsconfig.json",
0.893         ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0.893 
1.669 10:10:30 AM [vite-plugin-svelte] You are using Svelte 5.0.0-next.103. Svelte 5 support is experimental, breaking changes can occur in any release until this notice is removed.
1.669 work in progress:
1.669  - svelte-inspector is disabled until dev mode implements node to code mapping
1.669 
1.754 vite v5.2.8 building SSR bundle for production...
1.800 transforming...
3.215 10:10:32 AM [vite-plugin-svelte] /app/src/routes/(login)/login/+page.svelte:11:4 email_input is updated, but is not declared with $state(...). Changing its value will not correctly trigger updates.
9.470 ✓ 2153 modules transformed.
9.604 rendering chunks...
10.32 
10.32 node:internal/event_target:1062
10.32   process.nextTick(() => { throw err; });
10.32                            ^
10.33 Error [LibsqlError]: URL_INVALID: The URL is not in a valid format
10.33     at parseUri (file:///app/node_modules/@libsql/core/lib-esm/uri.js:9:15)
10.33     at expandConfig (file:///app/node_modules/@libsql/core/lib-esm/config.js:34:17)
10.33     at createClient (file:///app/node_modules/@libsql/client/lib-esm/node.js:11:26)
10.33     at file:///app/.svelte-kit/output/server/chunks/auth.js:10:16
10.33     at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
10.33     at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
10.33     at async Promise.all (index 4)
10.33     at async analyse (file:///app/node_modules/@sveltejs/kit/src/core/postbuild/analyse.js:66:16)
10.33     at async MessagePort.<anonymous> (file:///app/node_modules/@sveltejs/kit/src/utils/fork.js:22:16)
10.33 Emitted 'error' event on Worker instance at:
10.33     at [kOnErrorMessage] (node:internal/worker:314:10)
10.33     at [kOnMessage] (node:internal/worker:325:37)
10.33     at MessagePort.<anonymous> (node:internal/worker:225:57)
10.33     at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)
10.33     at exports.emitMessage (node:internal/per_context/messageport:23:28) {
10.33   code: 'URL_INVALID',
10.33   rawCode: undefined,
10.33   [cause]: undefined
10.33 }
10.33 
10.33 Node.js v18.20.2
------
Dockerfile:31
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm i --force
COPY . .

ARG TURSO_DB_AUTH_TOKEN \
	TURSO_DB_URL \
	RESEND_API_KEY \
	RESEND_EMAIL \
	SMTP_HOST \
	SMTP_PORT \
	SMTP_SECURE \
	SMTP_USER \
	SMTP_PASS \
	PUBLIC_PROJECT_NAME \
	prod

ENV TURSO_DB_AUTH_TOKEN=$TURSO_DB_AUTH_TOKEN \
	TURSO_DB_URL=$TURSO_DB_URL \
	RESEND_API_KEY=$RESEND_API_KEY \
	RESEND_EMAIL=$RESEND_EMAIL \
	SMTP_HOST=$SMTP_HOST \
	SMTP_PORT=$SMTP_PORT \
	SMTP_SECURE=$SMTP_SECURE \
	SMTP_USER=$SMTP_USER \
	SMTP_PASS=$SMTP_PASS \
	PUBLIC_PROJECT_NAME=$PUBLIC_PROJECT_NAME \
	prod=$prod

RUN npm run build

FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]

proposition: Use bun

This might seem like I'm trying to force my package manager/runtime etc. of choice on this project, but please hear me out:

  1. Bun is significantly faster than both pnpm and npm (and yarn)
  2. Bun is is significantly faster than node
  3. it has become a stable and reliable runtime with windows support in v1.1

For these (and many more) reasons i'd like to propose the use of bun as the package manager and runtime for this project.

Template repository

Just curious as to why this isn't a template repository?. Great project btw 🤩

`npm install` dependency resolution issue

When trying to npm install to demo this cool project, I'm receiving a dependecy error:

(base) :~/Documents/justship$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^5.0.0-next.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"^4.0.0" from [email protected]
npm ERR! node_modules/bits-ui
npm ERR!   bits-ui@"^0.17.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Using --force gives a bunch of additional warnings about dependency resolution.

This is on node 18.17.0, for what it's worth.

Don't you mean resend?

Your website says it uses rewind for email... thats a backup app, you mean resend 😃

[email protected] conflicts with [email protected]

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/svelte
npm error   dev svelte@"^5.0.0-next.1" from the root project
npm error
npm error Could not resolve dependency:
npm error peer svelte@"^3.49.0 || ^4.0.0" from [email protected]
npm error node_modules/embla-carousel-svelte
npm error   embla-carousel-svelte@"^8.1.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/rajiv/.npm/_logs/2024-06-19T05_58_01_485Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/rajiv/.npm/_logs/2024-06-19T05_58_01_485Z-debug-0.log

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.