Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

feat: add monorepo #35

Merged
merged 6 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 161 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,174 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# dependencies
/node_modules
/.pnp
.pnp.js
# Logs

# testing
/coverage
logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# next.js
/.next/
/out/
# Diagnostic reports (https://nodejs.org/api/report.html)

# production
/build
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# misc
.DS_Store
*.pem
# Runtime data

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pids
_.pid
_.seed
\*.pid.lock

# local env files
.env.local
# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
\*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

\*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

\*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# vercel
.vercel
# parcel-bundler cache (https://parceljs.org/)

**/*.trace
**/*.zip
**/*.tar.gz
**/*.tgz
**/*.log
package-lock.json
**/*.bun
.cache
.parcel-cache

.env
.env.development
.env.test
# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

.cache/

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp
.cache

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.\*


# docker

.dockerignore
39 changes: 0 additions & 39 deletions Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions docker-compose.yml

This file was deleted.

28 changes: 6 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
{
"name": "sprout-api",
"version": "1.0.50",
"module": "src/indes.ts",
"name": "sprout",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"dev:db:up": "docker-compose up -d",
"dev:db:down": "docker-compose down",
"dev": "bun run --watch src/index.ts",
"start": "bun run src/index.ts"
},
"dependencies": {
"@elysiajs/bearer": "^0.7.0",
"@elysiajs/swagger": "^0.8.5",
"dayjs": "^1.11.10",
"elysia": "latest",
"ioredis": "^5.3.2",
"jsonwebtoken": "8.5.1",
"langchain": "^0.0.197-rc.1",
"ulid": "^2.3.0"
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.5",
"bun-types": "latest",
"husky": "^8.0.3"
"api:dev": "cd packages/sprout-server && bun run dev"
}
}
File renamed without changes.
Binary file renamed bun.lockb → packages/sprout-server/bun.lockb
Binary file not shown.
File renamed without changes.
24 changes: 24 additions & 0 deletions packages/sprout-server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "sprout-api",
"version": "1.0.50",
"module": "src/indes.ts",
"scripts": {
"dev": "bun run --watch src/index.ts",
"start": "bun run src/index.ts"
},
"dependencies": {
"@elysiajs/bearer": "^0.7.0",
"@elysiajs/swagger": "^0.8.5",
"dayjs": "^1.11.10",
"elysia": "latest",
"ioredis": "^5.3.2",
"jsonwebtoken": "8.5.1",
"langchain": "^0.0.197-rc.1",
"ulid": "^2.3.0"
},
"devDependencies": {
"@types/jsonwebtoken": "^9.0.5",
"bun-types": "latest",
"husky": "^8.0.3"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export const redisConfig = {
? { password: process.env.REDIS_PASSWORD }
: {}), // Redis password
db: process.env.REDIS_DB ? parseInt(process.env.REDIS_DB) : 0, // Redis DB
tls: process.env.NODE_ENV === "production" ? {} : undefined
tls: process.env.NODE_ENV === "production" ? {} : undefined,
};
Loading
Loading