diff --git a/README.md b/README.md index 449459f..7ec0e68 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ -# In The Database 2 +![in the database 2](./assets/full.png "in the database 2") -a database site for notitg modcharts, currently very very unfinished, basically just a boilerplate \ No newline at end of file +a database site for notitg modcharts, currently very very unfinished, basically just a boilerplate + +## setup + +1. `npm install` +2. make a `config.json` (example in `config/config.json.example`) +3. `npm run build` and `node main/index.js` \ No newline at end of file diff --git a/assets/full.png b/assets/full.png new file mode 100644 index 0000000..47b67b4 Binary files /dev/null and b/assets/full.png differ diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..4f76a89 Binary files /dev/null and b/assets/icon.png differ diff --git a/src/schema.ts b/src/schema.ts index d49d34d..dda3b70 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,7 +1,7 @@ import * as mongoose from 'mongoose'; +import { Int32 } from 'mongoose-int32'; const Schema = mongoose.Schema; -const Int32 = require('mongoose-int32'); const Sample = new Schema({ start: {type: Int32, default: new Int32(0)},