The Chat App backend for the frontend project chat-app-frontend. This project holds the Chat App api for authenticating users and allowing for various user related actions.
This project doesn't require you having to download PostgreSQL on your machine since it's using PostgreSQL docker image.
- NodeJS
- Node v12
- Docker
Run these commands to get started:
npm run install
- install dependencies (for local development)docker-compose run web npm run setup
- create models, insert fake data, etc.docker-compose up
- start database and web service to begin development
You should now be able to make calls to your local server and play with the database.
Run these commands in order to access the ChatApp databases created in the db service:
docker-compose exec db sh
– access the db service's interactive terminalsu - postgres
– switch to the postgres userpsql chatapp_developmemt
– log into the PSQL client and access the development databasepsql chatapp_test
– to access the test database for unit testing
To exit the postgres interactive terminal run the command \q
, then run exit
twice.
- Without
babel-runtime
typescript throwsCannot find module 'babel-runtime/helpers/extends'
when attempting to compilejwt-token-encrypted
.