Simple Node React Example

This is the repository for a simple chat application using reactkoa and sequelize.

Build Status

Prerequisites

Node

cd backend
npm install
npm run dev

Docker

docker-compose build
docker-compose up

Exercises

The app

  • Use Postman, curl or similiar to
    • Post a new message to /api/chats
    • Get the messages from /api/chats
  • Add nickname and chat rooms to messages
  • Create a new endpoint /api/chats/<room> that returns messages for specific room

Deploy

  • Use SSH keys to login to the server
  • Install needed dependencies
  • Use Docker to deploy your application to the server