Browse Source

chore: clean up files from old project

main
Garrit Franke 3 years ago
parent
commit
5f0159034a
Signed by: garrit
GPG Key ID: 65586C4DDA55EA2C
  1. 2
      .gitignore
  2. 20
      README.md
  3. 2
      client/README.md
  4. 6
      docker-compose.yml
  5. 7
      server/README.md
  6. 15
      server/migrations/20210710224914_add_shape_table.js
  7. 3
      server/package.json
  8. 1
      server/routes/shapes.js

2
.gitignore vendored

@ -60,5 +60,7 @@ typings/
.cache .cache
dist/ dist/
.parcel-cache/ .parcel-cache/
.DS_Store
server/sqlite.db server/sqlite.db

20
README.md

@ -1,21 +1,19 @@
# shape.camp # Mail Proxy
Collect and trade random geometric shapes! Proper name TBD
## State of the project Gives you an anonymous mail address that sends incoming mail to your private
inbox.
shape.camp is still in early development. It is not yet deployed, but can be ## Todo
self-hosted. Pull requests are always welcome!
### Todo - [ ] Listen for incoming mail
- [ ] Let user set up aliases
- [ ] Generate shape for user - [ ] Forward mail to user email
- [ ] Open shape for trade
- [ ] See shapes in gallery
## Setup ## Setup
To deploy a shape.camp backend and frontend, follow the instructions in To deploy a mail-proxy backend and frontend, follow the instructions in
`server/` and `client/` respectively. `server/` and `client/` respectively.
Alternatively, you can deploy the app via docker-compose. See Alternatively, you can deploy the app via docker-compose. See

2
client/README.md

@ -1,4 +1,4 @@
# shape.camp Client # mail-proxy Client
These environment variables need to be set before launching the application These environment variables need to be set before launching the application

6
docker-compose.yml

@ -10,7 +10,7 @@ services:
environment: environment:
AUTH_SECRET: mysecretl AUTH_SECRET: mysecretl
networks: networks:
- shapecamp - mail-proxy
client: client:
build: ./client build: ./client
@ -20,6 +20,6 @@ services:
environment: environment:
API_BASE_PATH: http://localhost:8080 API_BASE_PATH: http://localhost:8080
networks: networks:
- shapecamp - mail-proxy
networks: networks:
shapecamp: mail-proxy:

7
server/README.md

@ -3,4 +3,9 @@
To configure the server, you need these fields in your `.env` file: To configure the server, you need these fields in your `.env` file:
* AUTH_SECRET - Secret used to sign JWTs * AUTH_SECRET - Secret used to sign JWTs
* DATABASE_URL - Database path
## Running
1. Migrate database: `npm run migrate:latest`
1. Run: `npm start`

15
server/migrations/20210710224914_add_shape_table.js

@ -1,15 +0,0 @@
exports.up = function(knex) {
// create a shape table with an array of coordinates, color and background color
return knex.schema.createTable('shape', function(table) {
table.increments('id').primary();
table.string('name');
table.string('color');
table.string('background_color');
table.string('coordinates');
}
};
exports.down = function(knex) {
};

3
server/package.json

@ -1,7 +1,8 @@
{ {
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"start": "nodemon app.js" "start": "nodemon app.js",
"migrate:latest": "knex migrate:latest"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",

1
server/routes/shapes.js

@ -1 +0,0 @@
Loading…
Cancel
Save