forked from github/plane
feat: creating segway setup
This commit is contained in:
parent
aec50e2c48
commit
5233c60da8
17
packages/tsconfig/express.json
Normal file
17
packages/tsconfig/express.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2016",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "./src",
|
||||
"moduleResolution": "node",
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
2
segway/.env.example
Normal file
2
segway/.env.example
Normal file
@ -0,0 +1,2 @@
|
||||
APP_ENV=local
|
||||
SERVER_PORT=9000
|
21
segway/Dockerfile
Normal file
21
segway/Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
# Use the official Node.js 18-alpine image as the base image
|
||||
FROM node:18-alpine
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json and package-lock.json to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application code to the working directory
|
||||
COPY . .
|
||||
|
||||
# Build the TypeScript code
|
||||
RUN npm run build
|
||||
|
||||
# Expose the port that your application will run on
|
||||
EXPOSE 9000
|
||||
|
3
segway/README.md
Normal file
3
segway/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Plane Segway
|
||||
|
||||
A node process that take care of external integration with plane.
|
36
segway/package.json
Normal file
36
segway/package.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "segway",
|
||||
"version": "0.0.1",
|
||||
"description": "An integration service syncs plane data with external sources.",
|
||||
"author": "plane team",
|
||||
"license": "ISC",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "npx tsc",
|
||||
"start": "node dist/start.js",
|
||||
"dev": "concurrently \"npx tsc --watch\" \"nodemon -q dist/start.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@overnightjs/core": "^1.7.6",
|
||||
"@sentry/node": "^7.73.0",
|
||||
"@sentry/tracing": "^7.73.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.3.1",
|
||||
"drizzle-orm": "^0.28.6",
|
||||
"express": "^4.18.2",
|
||||
"postgres": "^3.4.1",
|
||||
"stripe": "^14.1.0",
|
||||
"winston": "^3.10.0",
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.14",
|
||||
"@types/express": "^4.17.18",
|
||||
"@types/node": "^20.8.3",
|
||||
"@types/pg": "^8.10.7",
|
||||
"concurrently": "^8.2.1",
|
||||
"drizzle-kit": "^0.19.13",
|
||||
"nodemon": "^3.0.1",
|
||||
"typescript": "^5.2.2"
|
||||
}
|
||||
}
|
0
segway/src/controllers/index.ts
Normal file
0
segway/src/controllers/index.ts
Normal file
0
segway/src/middlewares/index.ts
Normal file
0
segway/src/middlewares/index.ts
Normal file
0
segway/src/server.ts
Normal file
0
segway/src/server.ts
Normal file
0
segway/src/start.ts
Normal file
0
segway/src/start.ts
Normal file
8
segway/tsconfig.json
Normal file
8
segway/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "tsconfig/express.json",
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "additional.d.ts"],
|
||||
"exclude": ["node_modules"],
|
||||
"compilerOptions": {
|
||||
"baseUrl": "src/"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user