This project uses Feathers. An open source web framework for building modern real-time applications.
- Custom implementation of
knex provider
- Auth (jwt) hooks + bcrypt
- Postgres DB
- Runs in docker (with
nodemon
for development -- auto reloading of server) - Adminer (runs on localhost:8081)
- rename
env.example
to.env
docker-compose up
- runs on
localhost:3000
- you can load
insomnia-data.json
to insomnia client
Update docker-compose
command: bash -c "yarn && yarn migrate && yarn dev"
to
command: bash -c "yarn && yarn migrate && yarn seed && yarn dev"
then run docker-compose up
username: dan
password: asdfasdf123
- authorize - user must be authorized before performing action
- bind-user - if jwt token is present in headers.authorization it will be exposed in
params.user
Stored in /migrations
. On every docker-compose up
, they are ran to latest
.
To run migrations outside of docker container you need to update .env
POSTGRES_HOST to localhost
.