Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
⏫ Merge TypeScript migration
Browse files Browse the repository at this point in the history
  • Loading branch information
oof2win2 committed Aug 12, 2021
2 parents d78d7fa + 63f8520 commit e005482
Show file tree
Hide file tree
Showing 68 changed files with 11,299 additions and 4,272 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MONGOURI=MongoDB URI
DISCORD_BOTTOKEN=Discord bot token
SENTRY_LINK=Sentry.io link
EXPRESS_PORT=Port to run the API at
WS_PORT=Port to run the websocket server at
PROMETHEUS_PORT=Port to run the Prometheus server at
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
git
src/_routes
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# private stuff
config.js
.env
config.ts
dist/
*.code-workspace

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# UNRELEASED
## Changes
- Removed src/bin/www as app.js was fine to use without it
- Migrated whole project to Typescript
- Added .env support instead of a .ts file
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ fagc-backend
---

## Contents
- [fagc-backend](#fagc-backend)
- [Contents](#contents)
- [Installation](#installation)
- [Introduction](#introduction)
- [Installation](#installation)
- [TODO:](#todo)

# Introduction

The backend for the Factorio Anti-Grief community

Expand All @@ -23,4 +25,11 @@ This README is focused solely on the installation instructions and the workings
3. Run the program with one of:
1. `nodemon`
2. `pm2 start pm2.config.js`
3. `node .`
3. `node .`


## TODO:
- [ ] Maybe migrate the bot's config database to the API and make the bot not use the config database entirely?
- [ ] Use `fastify-helmet`
- [ ] Firgure out how to use `yup` with response validation

24 changes: 0 additions & 24 deletions config.example.js

This file was deleted.

5 changes: 3 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"node_modules/**/node_modules"
],
"watch": [
"*"
"dist"
],
"env": {
"NODE_ENV": "development"
},
"ext": "*",
"cwd": "./src/"
"cwd": "./src/",
"delay": 1000
}
Loading

0 comments on commit e005482

Please sign in to comment.