SailsChat
SailsChat is a chat application based on Sails JS.
Features!
- RESTful API
- Spreated front end
- Real time chat
Tech
SailsChat uses a number of open source projects to work properly:
- Twitter Bootstrap - great UI boilerplate for modern web apps
- Node.js - evented I/O for the backend
- Sails.js - fast node.js network app framework
- MongoDB - non sql database
- jQuery - JavaScript Libirary
Installation
SailsChat requires Node.js v4+ & MongoDB to run.
Run the server
$ cd sailsChat/server
$ npm install
$ sails lift
You can run the client on almost any server
API
Function | Method | URL |
---|---|---|
Create user | POST | /users/create |
Get all users (except logged in) | GET | /users |
Get one user | GET | /users/:id |
Update a user | PUT | /users/:id |
Delete one user | DELETE | /users/:id |
Login | POST | /auth |
Send a message to user | POST | /:toid/message |
Get all current user messages | GET | /messages |
Get sent messages to user | GET | /messages/:toid |
Todos
- Active online status
License
MIT