Skip to content

Commit c4debcc

Browse files
committed
Remove electron code and bring it back to webapp.
1 parent 003337e commit c4debcc

File tree

114 files changed

+17803
-50321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+17803
-50321
lines changed

api/.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

api/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
prisma/migrations
1+
dist/
2+
conns/conn-*.json
3+
prisma/migrations
4+
prisma/dev.db

api/Dockerfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

api/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# CP Kernel
2+
3+
This is a package designed for code sharing between codepod API and electron server.
4+
5+
To use the kernel:
6+
If you use `yarn`, you can run `yarn add link:/path/to/cpkernel`. However, this will not work with npm. For npm, you need to run `npm link` in cpkernel folder to globally register the package, and run `npm link cpkernel` to link. This won't reflect in package.json.
7+
8+
Thus the ideal setup should be to add cpkernel to package.json, but not to install it. Instead, run `npm link cpkernel` during development.
9+
110
# CodePod Repo Server
211

312
# Using Prisma and PostgreSQL
@@ -37,7 +46,15 @@ migrate DB:
3746
npx prisma migrate dev --name init
3847
```
3948

40-
generate client (the migrate will run this, so no need anymore):
49+
create another migration with just a different name:
50+
51+
```
52+
prisma migrate dev --name added_job_title
53+
```
54+
55+
generate client (the migrate will run this, so no need anymore. But do not
56+
forget to do this after schema change, otherwise you'll end up with debugging
57+
strange errors):
4158

4259
```
4360
npx prisma generate
@@ -55,12 +72,11 @@ When I mess up with the database and want to start from scratch:
5572
npx prisma db push --preview-feature
5673
```
5774

58-
5975
## Building node-pty
6076

6177
Install nvm and node, yarn as usual. Running of `yarn` may fail (to build
6278
node-pty) due to missing development packages. On Ubuntu install:
6379

6480
```
6581
sudo apt install -y make python build-essential
66-
```
82+
```

api/db.js

Lines changed: 0 additions & 61 deletions
This file was deleted.
File renamed without changes.

api/jest.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: "ts-jest",
4+
testEnvironment: "node",
5+
transform: {
6+
"^.+\\.ts?$": "ts-jest",
7+
},
8+
transformIgnorePatterns: ["<rootDir>/node_modules/"],
9+
};

api/kernels/README.md

Lines changed: 0 additions & 90 deletions
This file was deleted.

api/kernels/javascript/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)