From f824f9e19f68b444275d563e5a7030d9730bc6f1 Mon Sep 17 00:00:00 2001
From: warmachine028 <75939390+warmachine028@users.noreply.github.com>
Date: Fri, 25 Oct 2024 01:08:57 +0530
Subject: [PATCH] feat: initialized bun express server
---
.../{eslint.config.ts => eslint.config.mjs} | 4 +-
client/package.json | 6 +-
client/public/vite.svg | 21 +++-
client/src/api/posts.ts | 2 +-
client/src/assets/react.svg | 7 +-
client/vite.config.ts | 3 +
server/.gitignore | 42 +++++++
server/README.md | 15 +++
server/bun.lockb | Bin 0 -> 7872 bytes
server/package.json | 24 ++++
server/public/favicon.ico | Bin 0 -> 3445 bytes
server/src/controllers/index.ts | 9 ++
server/src/index.ts | 44 +++++++
server/src/routes/index.ts | 10 ++
server/tsconfig.json | 111 ++++++++++++++++++
15 files changed, 291 insertions(+), 7 deletions(-)
rename client/{eslint.config.ts => eslint.config.mjs} (84%)
create mode 100644 server/.gitignore
create mode 100644 server/README.md
create mode 100644 server/bun.lockb
create mode 100644 server/package.json
create mode 100644 server/public/favicon.ico
create mode 100644 server/src/controllers/index.ts
create mode 100644 server/src/index.ts
create mode 100644 server/src/routes/index.ts
create mode 100644 server/tsconfig.json
diff --git a/client/eslint.config.ts b/client/eslint.config.mjs
similarity index 84%
rename from client/eslint.config.ts
rename to client/eslint.config.mjs
index 2ab0b66..bd91fd3 100644
--- a/client/eslint.config.ts
+++ b/client/eslint.config.mjs
@@ -19,7 +19,9 @@ export default tseslint.config(
},
rules: {
...reactHooks.configs.recommended.rules,
- 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }]
+ 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
+ '@typescript-eslint/no-empty-object-type': 'off',
+ 'react-refresh/only-export-components': 'off'
}
}
)
diff --git a/client/package.json b/client/package.json
index 3389992..3738b52 100644
--- a/client/package.json
+++ b/client/package.json
@@ -4,10 +4,10 @@
"version": "0.0.0",
"type": "module",
"scripts": {
- "dev": "vite",
- "build": "tsc -b && vite build",
+ "dev": "bun x vite",
+ "build": "bun x vite build",
"lint": "eslint .",
- "preview": "vite preview"
+ "preview": "bun x vite preview"
},
"dependencies": {
"@radix-ui/react-checkbox": "^1.1.2",
diff --git a/client/public/vite.svg b/client/public/vite.svg
index e7b8dfb..d08b961 100644
--- a/client/public/vite.svg
+++ b/client/public/vite.svg
@@ -1 +1,20 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/client/src/api/posts.ts b/client/src/api/posts.ts
index 96cb51c..bf5ee2f 100644
--- a/client/src/api/posts.ts
+++ b/client/src/api/posts.ts
@@ -1,7 +1,7 @@
import axios from 'axios'
import { PostsResponse, Post } from '@/types'
-const API_URL = 'https://dummyjson.com'
+const API_URL = import.meta.env.VITE_API_URL
export const getPosts = async (skip: number = 0, limit: number = 10): Promise => {
try {
diff --git a/client/src/assets/react.svg b/client/src/assets/react.svg
index 6c87de9..ec80c06 100644
--- a/client/src/assets/react.svg
+++ b/client/src/assets/react.svg
@@ -1 +1,6 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/client/vite.config.ts b/client/vite.config.ts
index d891b96..8dde200 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -9,5 +9,8 @@ export default defineConfig({
alias: {
'@': path.resolve(__dirname, './src')
}
+ },
+ build: {
+ chunkSizeWarningLimit: 1600
}
})
diff --git a/server/.gitignore b/server/.gitignore
new file mode 100644
index 0000000..87e5610
--- /dev/null
+++ b/server/.gitignore
@@ -0,0 +1,42 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# local env files
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+# vercel
+.vercel
+
+**/*.trace
+**/*.zip
+**/*.tar.gz
+**/*.tgz
+**/*.log
+package-lock.json
+**/*.bun
\ No newline at end of file
diff --git a/server/README.md b/server/README.md
new file mode 100644
index 0000000..688c87e
--- /dev/null
+++ b/server/README.md
@@ -0,0 +1,15 @@
+# Elysia with Bun runtime
+
+## Getting Started
+To get started with this template, simply paste this command into your terminal:
+```bash
+bun create elysia ./elysia-example
+```
+
+## Development
+To start the development server run:
+```bash
+bun run dev
+```
+
+Open http://localhost:3000/ with your browser to see the result.
\ No newline at end of file
diff --git a/server/bun.lockb b/server/bun.lockb
new file mode 100644
index 0000000000000000000000000000000000000000..87beddf7dd33416b4920cf4ac8cd40e52dd885c6
GIT binary patch
literal 7872
zcmeHM3s_S}7QSErK?_O|e3yqWlq4hs1Vltps!|230-|C=xIiEzAqg*C1)r-{>jM#_
zr3xaxXe~;0MXfGYgesy!sfeQZsD)Z9wQ7B`=OlOF+E$F){r21L*Yj~Xckax8=ASb&
z=gvKGu;VAFRs3+NoKMRWZNn4fW^i$33Q26FR7P_n6{t1n9SlD2cdI+Xar)VQ&i_)=`^N1mNd|oyHQjcElW{L
z#T2y-p1c9&RiJx;mM9dlQktUXLAg7WT^X$uYog&XWdXFXeJ1E0pjUu42R%2M7DqsR
zG~mVIGI}uF<8z5hA*WSZ+uAbpO_{>;l^lxd0=f!xSI`SV<8xEby;pbp*Y5P)a{ZTv
zk#$Qgu6%f1@WFdY-F%l9o<5#um0q2HLooFRqqlMluZk>-Z+TvcoD(vos)4uo(102C
zS8dkU2h4F@HqE2>#^6sntq`9%8g=o*s)H+>G_7B5HES}@`1V+CM)kdMW$A^z#;qM~
zG@x>IP)}vU&_jWJ-!BXb%Ax1oj;dU4`Mv!*e(35!pO5q~Rd|&(Psu*C^;A~M=9u$R
z1K|Hh1ZNe+4=(U+8rs9l1}=Ss;15G%U%-R!wD?Z?fT0b+x59lW(?3G>9T&mR0DuVa
zh&9H4dJ4g>2K*QXZwpxa*Th!=-iP6j+>Krn-xr7oS$HVwC8XVCxEaClM`*
z$VYuG8>DGBXZQx3o07T7;g_6^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!zUsL$!p1;4?|Nnbn
zIrCBU5u?q#)G7&2Dpza7G8vDg5_!{9H0^CGbhcGX=hBKuCtH!NSSF2FDa8!6c#e3`%+aMo2TOuFig&goX
zUO0B-fxJ;)V0eTxAD3ocGlg!m6Wqa>Zf(90yy#5ih51X8KkRHM6KiO-rakjXGK_|8
zpHhPX13c15F0#GGRmUWaWH;MuNZyv@M-AKhAsJhe88tL;=D7%YE+UHLbV=^i&>+m2
z=f-oUs8!GpW_?L^6>0=LXP%%vFHG{USR>>KcrMglz<@W?HV;g58n%=Uw=(b^Y3m9o
zXObHxIaqB!U`^PTW&W)-l2<1ATP*_tPe@U}9%(o1M*tL@NzR$%cC{D}9ypC;rAhV|
zeE<+(O!Cqs{|gvbo+}K8BAIKFA%+?uPskHd6v5?oHNu2(QQ0;k{u^mXsB`J3EhC)Z!tq*lqiMFswMix=%A+K5@{80T(X8%
z$;Gm%8kJNY7mnc;168tdGUZ+kHM@7-9XpKgx_T=+bbd*%BQKj(Y%D5OcPoaw9>&)=E
z%ncV;g3yJhiJI%9mdYhEu~fy!4#O46kz%z5NJtbBG&eydLEs3V%#DvES^VR{M-)#@Qynu(^aP@UOIWO`+A885U7~#+P6=-cx0+3d7
zwejc`2om4`L~gm-2=@wH`yRw_2WV8Wdg&?+v*#^L(+2GIbqp!DjkEua9X
z?Ouy?(M196eseRMZ+*!>+%bbBi>h>f|rm@5$B5EA4OQVA0%Ihra6SZT
c?Pln}07EtjU6G{bYF`LKB%q7s|9k)c1zm+6@c;k-
literal 0
HcmV?d00001
diff --git a/server/package.json b/server/package.json
new file mode 100644
index 0000000..9c8fd9c
--- /dev/null
+++ b/server/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "react-query-demo",
+ "version": "1.0.50",
+ "type": "module",
+ "scripts": {
+ "test": "bun --watch test",
+ "dev": "bun --watch src/index.ts",
+ "start": "bun run src/index.ts"
+ },
+ "dependencies": {
+ "@elysiajs/cors": "^1.1.1",
+ "@elysiajs/cron": "^1.1.1",
+ "@elysiajs/swagger": "^1.1.5",
+ "elysia": "latest"
+ },
+ "devDependencies": {
+ "bun-types": "latest"
+ },
+ "license": "MIT",
+ "peerDependencies": {
+ "typescript": "^5.6.3"
+ },
+ "module": "src/index.js"
+}
\ No newline at end of file
diff --git a/server/public/favicon.ico b/server/public/favicon.ico
new file mode 100644
index 0000000000000000000000000000000000000000..e8da1deef2b2f96ccfe719276d18522057ad5025
GIT binary patch
literal 3445
zcmV-*4T|!KP)Px?FG)l}RCr$PolR&JOBTnw6C9&Pjfy_}B3TKpWJsbbc?yCX1#zJ(Gp^!JW^kE>
z2HnaN-6UD%Wg(&{0TqU1k(-4J&ApI~g1UGbG#MiDhNv+gwwH|IVpX)z#I$=UAGWnmX3q-Cc65+SXRrx3*@Cij~Xd0KN)>pufAj`ps}b1po-#bXaG(T%K4FiY8t}-%6!2IW#l`!D4D&4x0%f@O^(0A*m-YG6x`L
zwWU=Mge{B5`bjaLJbB_he*Bn2U+F9eM!(BIWDWoh+sI}X^#-Ei
z!2?Ua@AtzoE&-7#05ECe`#!ksFzwm1$D5sFKy!0*5fErYxx07o{=2oc_2iBnJG}Ml*URc3dH{gHV6qy9tO1Bb
z?FSAV@HTJWT-AaG0(`l+xcJw?!ouIyty|~)`0*nIptZHt+q!kD2cJPA%b|(;<;xcj
zejr%@0aU|E5OM_oL<0!o355Fk^=tSsiiUZ1@80b#FE5AU%OtYwv9U4l&Ye3l#ppc7
zDiE>;AQA&WE5^Nm&X(mZYiMZ5gCE1m3J`J!z!nIg9+gTZ{4oi`YOrYRrj`)^SY3fh
zi!|*ORwkN`n;11@3IGU7n+Jf;VMqx5yG;qa!KF)=OjarPZowD;HgyGY#T&^R`g;9>BVqh9Hl*gUkScTd+Y8Ou(@3
z%9SgL25w_KfE9+A0Ad4^Da!yc69Brpx~{F<{|)ck^8jFTJOFiDxgL}Hhv&`;0_^~h
z;$y1~4i0iPpsn$M1)~FmKzm%E6#$y}Q1jELPkX0Mol1nDrKQE&v}u#q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Q(pKoGX_Q01fvVMIh!$!i<{tUP!H_}dcCkh?2Z5mDt>YXFFQ1%x3CR47xTDi=*2
zi&hSwH8nMrvKnves;};HtOS5|k?0}dyXEEO&|3sS5Z-s-0R)6z%{ytTztt_Cj`IEo
XEEos?arL5700000NkvXXu0mjfZKgmi
literal 0
HcmV?d00001
diff --git a/server/src/controllers/index.ts b/server/src/controllers/index.ts
new file mode 100644
index 0000000..b053586
--- /dev/null
+++ b/server/src/controllers/index.ts
@@ -0,0 +1,9 @@
+type GetPostsParams = {
+ query: {
+ cursor: string
+ limit: number
+ }
+}
+export const getPosts = async ({ query: { cursor, limit } }: GetPostsParams) => {
+ console.log(cursor, limit)
+}
diff --git a/server/src/index.ts b/server/src/index.ts
new file mode 100644
index 0000000..c2ad26b
--- /dev/null
+++ b/server/src/index.ts
@@ -0,0 +1,44 @@
+import { Elysia, t } from 'elysia'
+import { swagger } from '@elysiajs/swagger'
+import { cors } from '@elysiajs/cors'
+import { cron } from '@elysiajs/cron'
+import { postRoutes } from '@/routes'
+
+const port = Bun.env.PORT || 5000
+
+new Elysia()
+ .use(
+ // Create a cron job to ping the server every 14 minutes
+ cron({
+ name: 'Ping Server',
+ pattern: '*/14 * * * *',
+ async run() {
+ try {
+ const response = await fetch('https://react-query-demoo.vercel.app')
+ if (response.ok) {
+ console.log('Server pinged successfully')
+ } else {
+ console.error('Failed to ping server:', response.status, response.statusText)
+ }
+ } catch (error) {
+ console.error('Error pinging server:', error)
+ }
+ }
+ })
+ )
+ .use(cors())
+ .use(
+ swagger({
+ path: '/docs',
+ documentation: {
+ info: {
+ title: 'React Query Demo Documentation',
+ version: '1.0.0'
+ }
+ }
+ })
+ )
+ .get('/favicon.ico', () => Bun.file('public/favicon.ico'))
+ .get('/', () => '💾 Hello from React Query Demo server')
+ .use(postRoutes)
+ .listen(port, () => console.log(`🦊 Elysia is running at http://localhost:${port}`))
diff --git a/server/src/routes/index.ts b/server/src/routes/index.ts
new file mode 100644
index 0000000..9f3b8ff
--- /dev/null
+++ b/server/src/routes/index.ts
@@ -0,0 +1,10 @@
+import { Elysia, t } from 'elysia'
+import { getPosts } from '@/controllers'
+
+export const postRoutes = new Elysia({ prefix: '/posts' }).get('/', getPosts, {
+ //
+ query: t.Object({
+ skip: t.Optional(t.String()),
+ limit: t.Optional(t.Number())
+ })
+})
diff --git a/server/tsconfig.json b/server/tsconfig.json
new file mode 100644
index 0000000..5cb0488
--- /dev/null
+++ b/server/tsconfig.json
@@ -0,0 +1,111 @@
+{
+ "compilerOptions": {
+ /* Visit https://aka.ms/tsconfig to read more about this file */
+
+ /* Projects */
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
+
+ /* Language and Environment */
+ "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
+ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
+
+ /* Modules */
+ "module": "ESNext" /* Specify what module code is generated. */,
+ // "rootDir": "./", /* Specify the root folder within your source files. */
+ "moduleResolution": "Node" /* Specify how TypeScript looks up a file from a given module specifier. */,
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
+ "types": [
+ "bun-types"
+ ] /* Specify type package names to be included without being referenced in a source file. */,
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
+ // "resolveJsonModule": true, /* Enable importing .json files. */
+ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */
+
+ /* JavaScript Support */
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
+
+ /* Emit */
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
+ // "removeComments": true, /* Disable emitting comments. */
+ // "noEmit": true, /* Disable emitting files from a compilation. */
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
+
+ /* Interop Constraints */
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
+
+ /* Type Checking */
+ "strict": true /* Enable all strict type-checking options. */,
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
+
+ /* Completeness */
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */,
+ "baseUrl": "./",
+ "paths": {
+ "@/*": ["src/*"]
+ }
+ },
+ "include": ["src/**/*.ts"],
+ "exclude": ["node_modules", "dist"]
+}