📝 updated links to fosscord-server
This commit is contained in:
parent
b1d85653e6
commit
403de3ef66
@ -1,7 +1,7 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
# needed for native packages (bcrypt, canvas)
|
# needed for native packages (bcrypt, canvas)
|
||||||
RUN apk add --no-cache make gcc g++ python cairo-dev jpeg-dev pango-dev giflib-dev
|
RUN apk add --no-cache make gcc g++ python cairo-dev jpeg-dev pango-dev giflib-dev
|
||||||
WORKDIR /usr/src/fosscord-api
|
WORKDIR /usr/src/fosscord-server
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY package-lock.json .
|
COPY package-lock.json .
|
||||||
RUN npm rebuild bcrypt --build-from-source && npm install canvas --build-from-source
|
RUN npm rebuild bcrypt --build-from-source && npm install canvas --build-from-source
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## [About](https://github.com/fosscord/fosscord-api/wiki)
|
## [About](https://github.com/fosscord/fosscord-server/wiki)
|
||||||
|
|
||||||
This repository contains the Fosscord HTTP API Server
|
This repository contains the Fosscord HTTP API Server
|
||||||
|
|
||||||
@ -43,8 +43,8 @@ and the other technologies we use
|
|||||||
Clone the Repository:
|
Clone the Repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/fosscord/fosscord-api
|
git clone https://github.com/fosscord/fosscord-server
|
||||||
cd discord-server
|
cd fosscord-server
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Install (dev)dependencies:
|
#### Install (dev)dependencies:
|
||||||
|
@ -12,18 +12,16 @@
|
|||||||
"start": "npm run build && node dist/start",
|
"start": "npm run build && node dist/start",
|
||||||
"build": "tsc -b .",
|
"build": "tsc -b .",
|
||||||
"build-docker": "tsc -p tsconfig-docker.json",
|
"build-docker": "tsc -p tsconfig-docker.json",
|
||||||
"dev": "tsnd --respawn src/start.ts",
|
"dev": "tsnd --respawn src/start.ts"
|
||||||
"bundle:macos": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-macos.app.tgz' 'fosscord-api.app'",
|
|
||||||
"bundle:linux": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-linux.tgz' 'fosscord'",
|
|
||||||
"bundle:windows": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/fosscord/fosscord-api.git"
|
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"discord",
|
"discord",
|
||||||
"fosscord",
|
"fosscord",
|
||||||
|
"fosscord-server",
|
||||||
"fosscord-api",
|
"fosscord-api",
|
||||||
"discord open source",
|
"discord open source",
|
||||||
"discord-open-source"
|
"discord-open-source"
|
||||||
@ -31,9 +29,9 @@
|
|||||||
"author": "Fosscord",
|
"author": "Fosscord",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/fosscord/fosscord-api/issues"
|
"url": "https://github.com/fosscord/fosscord-server/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
"homepage": "https://fosscord.com",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"@types/jest": "^26.0.22",
|
"@types/jest": "^26.0.22",
|
||||||
|
8
bundle/package-lock.json
generated
8
bundle/package-lock.json
generated
@ -34,7 +34,6 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fosscord/server-util": "^1.3.52",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"@types/jest": "^26.0.22",
|
"@types/jest": "^26.0.22",
|
||||||
"@types/json-schema": "^7.0.7",
|
"@types/json-schema": "^7.0.7",
|
||||||
@ -92,7 +91,6 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fosscord/server-util": "^1.3.42",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"btoa": "^1.2.1",
|
"btoa": "^1.2.1",
|
||||||
@ -129,7 +127,6 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fosscord/server-util": "^1.3.51",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"ajv": "^8.5.0",
|
"ajv": "^8.5.0",
|
||||||
"amqplib": "^0.8.0",
|
"amqplib": "^0.8.0",
|
||||||
@ -155,7 +152,7 @@
|
|||||||
},
|
},
|
||||||
"../util": {
|
"../util": {
|
||||||
"name": "@fosscord/util",
|
"name": "@fosscord/util",
|
||||||
"version": "1.3.52",
|
"version": "1.3.55",
|
||||||
"license": "GPLV3",
|
"license": "GPLV3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
@ -1583,7 +1580,6 @@
|
|||||||
"@fosscord/api": {
|
"@fosscord/api": {
|
||||||
"version": "file:../api",
|
"version": "file:../api",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@fosscord/server-util": "^1.3.52",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"@types/amqplib": "^0.8.1",
|
"@types/amqplib": "^0.8.1",
|
||||||
"@types/bcrypt": "^5.0.0",
|
"@types/bcrypt": "^5.0.0",
|
||||||
@ -1636,7 +1632,6 @@
|
|||||||
"@fosscord/cdn": {
|
"@fosscord/cdn": {
|
||||||
"version": "file:../cdn",
|
"version": "file:../cdn",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@fosscord/server-util": "^1.3.42",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"@types/body-parser": "^1.19.0",
|
"@types/body-parser": "^1.19.0",
|
||||||
"@types/btoa": "^1.2.3",
|
"@types/btoa": "^1.2.3",
|
||||||
@ -1668,7 +1663,6 @@
|
|||||||
"@fosscord/gateway": {
|
"@fosscord/gateway": {
|
||||||
"version": "file:../gateway",
|
"version": "file:../gateway",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@fosscord/server-util": "^1.3.51",
|
|
||||||
"@fosscord/util": "file:../util",
|
"@fosscord/util": "file:../util",
|
||||||
"@types/amqplib": "^0.8.1",
|
"@types/amqplib": "^0.8.1",
|
||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
|
@ -12,15 +12,15 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/fosscord/fosscord-api.git"
|
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Fosscord",
|
"author": "Fosscord",
|
||||||
"license": "AGPLV3",
|
"license": "AGPLV3",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/fosscord/fosscord-api/issues"
|
"url": "https://github.com/fosscord/fosscord-server/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
"homepage": "https://fosscord.com",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/async-exit-hook": "^2.0.0",
|
"@types/async-exit-hook": "^2.0.0",
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
|
@ -6,7 +6,8 @@ import os from "os";
|
|||||||
import osu from "node-os-utils";
|
import osu from "node-os-utils";
|
||||||
import exitHook from "async-exit-hook";
|
import exitHook from "async-exit-hook";
|
||||||
|
|
||||||
const cores = Number(process.env.threads) || 1 || os.cpus().length;
|
// TODO: add tcp socket event transmission
|
||||||
|
const cores = 1 || Number(process.env.threads) || os.cpus().length;
|
||||||
|
|
||||||
if (cluster.isMaster && !process.env.masterStarted) {
|
if (cluster.isMaster && !process.env.masterStarted) {
|
||||||
const dbPath = path.join(__dirname, "..", "..", "db");
|
const dbPath = path.join(__dirname, "..", "..", "db");
|
||||||
|
33
package.json
33
package.json
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "fosscord-server",
|
|
||||||
"version": "1.3.52",
|
|
||||||
"description": "Fosscord server",
|
|
||||||
"main": "src/index.js",
|
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
|
||||||
"build": "tsc -b .",
|
|
||||||
"prepublish": "npm run build"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/fosscord/fosscord-server.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"discord",
|
|
||||||
"fosscord",
|
|
||||||
"fosscord-server-util",
|
|
||||||
"discord open source",
|
|
||||||
"discord-open-source"
|
|
||||||
],
|
|
||||||
"author": "Fosscord",
|
|
||||||
"license": "GPLV3",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/fosscord/fosscord-server/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://docs.fosscord.com/",
|
|
||||||
"dependencies": {
|
|
||||||
"@fosscord/api": "file:api",
|
|
||||||
"@fosscord/cdn": "file:cdn",
|
|
||||||
"@fosscord/gateway": "file:gateway"
|
|
||||||
}
|
|
||||||
}
|
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
Fosscord is a free open source selfhostable chat, voice and video discord-compatible platform.
|
Fosscord is a free open source selfhostable chat, voice and video discord-compatible platform.
|
||||||
|
|
||||||
Fosscord server util contains all necessary logic that is shared between the [api](https://github.com/fosscord/fosscord-api), [gateway](https://github.com/fosscord/fosscord-gateway) and [cdn](https://github.com/fosscord/fosscord-cdn).
|
Fosscord server util contains all necessary logic that is shared between the [api](https://github.com/fosscord/fosscord-server/tree/master/api), [gateway](https://github.com/fosscord/fosscord-server/tree/master/gateway) and [cdn](https://github.com/fosscord/fosscord-server/tree/master/cdn).
|
||||||
|
|
||||||
It contains all mongoose database models and utility functions.
|
It contains all mongoose database models and utility functions.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user