Skip to content

Commit

Permalink
move server and cli into apps
Browse files Browse the repository at this point in the history
  • Loading branch information
gladwindos committed Mar 9, 2024
1 parent 2fe360b commit ad2186c
Show file tree
Hide file tree
Showing 25 changed files with 64 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const endpointSchema: JSONSchemaType<Endpoint> = {
export const configSchema: JSONSchemaType<Config> = {
type: "object",
properties: {
port: { type: "number", nullable: true, default: 6060 },
port: { type: "number", nullable: true, default: 8080 },
policyDefinitions: {
...policyDefinitionsSchema,
nullable: true,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts → apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.use(express.json());
const startServer = () => {
const config = parseConfigYaml("gateway");

const PORT = config.port || process.env.PORT || 6060;
const PORT = config.port || process.env.PORT || 8080;

const router = createRouter(config);
app.use(router);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
81 changes: 58 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "turbo build:watch & nodemon packages/server/src/index.ts",
"dev": "turbo build:watch & nodemon apps/server/src/index.ts",
"build": "turbo build",
"test": "turbo test",
"test:watch": "turbo run test:watch",
"lint": "turbo lint",
"clean": "turbo clean",
"prepare": "husky",
"purge:node_modules": "rm -rf node_modules && rm -rf packages/*/node_modules"
"purge:node_modules": "rm -rf node_modules && rm -rf packages/*/node_modules && rm -rf apps/*/node_modules"
},
"author": "",
"license": "ISC",
Expand All @@ -36,6 +36,7 @@
"typescript": "^5.3.3"
},
"workspaces": [
"packages/*"
"packages/*",
"apps/*"
]
}

0 comments on commit ad2186c

Please sign in to comment.