1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00

[ProjectManagement] Add root project and dev getting started guides.

This commit is contained in:
darkhpp 2021-08-13 13:34:00 +07:00
parent ce055e4d72
commit 2c2d815c53
13 changed files with 22369 additions and 9428 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

15
README.md Normal file
View File

@ -0,0 +1,15 @@
# Fosscord Server
Consists of:
* HTTP Rest API
* CDN
* Gateway
* RTC
## Dev getting started
1. Install deps: `npm i`
2. TODO: Configure
3. Start the server:
* To run all at once, run `npm start` in root directory.
* To run api, do `npm start` in `api` folder
* To run cdn, do `npm start` in `cdn` folder
* To run gateway, do `npm start` in `gateway` folder

1945
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{ {
"name": "@fosscord/api", "name": "api",
"version": "1.0.0", "version": "1.0.0",
"description": "This repository contains the HTTP API Server", "description": "This repository contains the HTTP API Server",
"main": "dist/Server.js", "main": "dist/Server.js",
@ -33,7 +33,7 @@
}, },
"homepage": "https://github.com/fosscord/fosscord-api#readme", "homepage": "https://github.com/fosscord/fosscord-api#readme",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.52", "@fosscord/server-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",
"ajv": "^8.4.0", "ajv": "^8.4.0",

3428
cdn/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{ {
"name": "@fosscord/cdn", "name": "cdn",
"version": "1.0.0", "version": "1.0.0",
"description": "cdn for discord clone", "description": "cdn for discord clone",
"main": "dist/index.js", "main": "dist/index.js",
@ -21,7 +21,7 @@
}, },
"homepage": "https://github.com/discord-open-source/discord-cdn#readme", "homepage": "https://github.com/discord-open-source/discord-cdn#readme",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.42", "@fosscord/server-util": "file:../util",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"btoa": "^1.2.1", "btoa": "^1.2.1",
"cheerio": "^1.0.0-rc.5", "cheerio": "^1.0.0-rc.5",

4202
gateway/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
{ {
"name": "@fosscord/gateway", "name": "gateway",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
@ -13,7 +13,7 @@
"author": "Fosscord", "author": "Fosscord",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.51", "@fosscord/server-util": "file:../util",
"ajv": "^8.5.0", "ajv": "^8.5.0",
"amqplib": "^0.8.0", "amqplib": "^0.8.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",

20890
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

33
package.json Normal file
View File

@ -0,0 +1,33 @@
{
"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": {
"api": "file:api",
"cdn": "file:cdn",
"gateway": "file:gateway"
}
}

1
src/index.js Normal file
View File

@ -0,0 +1 @@
// TODO: start api AND cdn AND gateway

1268
util/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
"typescript": "^4.3.2" "typescript": "^4.3.2"
}, },
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.15", "../util": "*",
"mediasoup": "^3.7.16", "mediasoup": "^3.7.16",
"node-turn": "^0.0.6", "node-turn": "^0.0.6",
"ws": "^7.4.6" "ws": "^7.4.6"