API server for Parlez-Vous
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
deploy
migrations
src
.gitignore
Dockerfile
README.md
bootstrap-server.sh
docker-compose.deploy.yml
docker-compose.yml
knexfile.js
package-lock.json
package.json
tsconfig.json

README.md

Comment Server (Work In Progress)

Running Locally:

Required Software

  • Docker
  • Docker-Compose (link)

You need a .env file at the root of the project

Then run docker-compose up

This will boot up a postgresql db, then run migrations on the db and then start a nodejs server.

See docker-compose.yml for exposed ports for database and server.

TODO:

user_credentials
  user_id INT NOT NULL references users(id),
  password TEXT NOT NULL UNIQUE;

user_sessions
  • Add 404 route
  • Rate limit by IP (i.e. prevent ddos)
  • Validate domain ownership
const dns = require('dns');

dns.resolve(
  'gdelgado.ca', 
  'TXT', 
  (err, result) => { console.log(result) }
)
  • DB Backups

  • Analytics?

    • probably better as a separate product
  • Pin important comments (server side)