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
dist/
.parcel-cache/
.DS_Store
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
self-hosted. Pull requests are always welcome!
## Todo
### Todo
- [ ] Generate shape for user
- [ ] Open shape for trade
- [ ] See shapes in gallery
- [ ] Listen for incoming mail
- [ ] Let user set up aliases
- [ ] Forward mail to user email
## 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.
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

6
docker-compose.yml

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

7
server/README.md

@ -3,4 +3,9 @@
To configure the server, you need these fields in your `.env` file:
* 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",
"scripts": {
"start": "nodemon app.js"
"start": "nodemon app.js",
"migrate:latest": "knex migrate:latest"
},
"author": "",
"license": "ISC",

1
server/routes/shapes.js

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