A FeathersJS chat application
This repository includes the TypeScript and JavaScript API server from the official Feathers chat guide as well as chat frontend examples for different frameworks.
The TypeScript version of the chat API server can be found in the typescript folder. To start it install the dependencies like this:
cd typescript
npm install
Then compile the source code and run the database migration which will initialize an SQLite datbase in the feathers-chat.sqlite file.
npm run compile
npm run migrate
It can now be started with:
npm start
Or in development mode with
npm run dev
The JavaScript version of the chat API server can be found in the javascript folder. To start it install the dependencies like this:
cd javascript
npm install
Then run the database migration which will initialize an SQLite datbase in the feathers-chat.sqlite file.
npm run migrate
It can now be started with:
npm start
Or in development mode with
npm run dev
A plain JavaScript frontend can be found in the public folder which is hosted statically by both, the TypeScript and JavaScript api server.
The React chat frontend example in the react folder uses create-react-app, TypeScript and the typed client available in the TypeScript API server.
The TypeScript API server needs to be compiled and then running in order for this example to work.
TBD