Code Monkey home page Code Monkey logo

sp-sails-chat's Introduction

Sitepoint Sails Chat Application

This is a tutorial project for Sitepoint showing you how to build a chat app using Sails.js. This project has been build using Sails.js framework for the API and Semantic-ui for the user interface.

Link to the tutorial will be provided later:

Installation

git clone [email protected]:brandiqa/sp-sails-chat.git

cd sp-sails-chat

npm install

sails lift

Open http://localhost:1337 on your browser

Configuration

The application has been configured to reset its local disk database everytime it starts. To persist the data, go to config/models.js and change the migrate setting to alter or safe.

Contributors

Michael Wanyoike - https://twitter.com/myxsys

sp-sails-chat's People

Contributors

brandiqa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sp-sails-chat's Issues

I got below error messages

OperationalError [UsageError]: Invalid new record.
Details:
  Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {
  createdAt: 1625624508516,
  updatedAt: 1625624508516,
  id: 53,
  name: 'Peter Quinn',
  email: '[email protected]',
  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',
  location: 'Langley',
  bio: 'Rather not say'
}

    at Object.module.exports.bootstrap (C:\Users\fangc\Dev\chat-app\new-chat-app\config\bootstrap.js:27:36) {
  cause: Error [UsageError]: Invalid new record.
  Details:
    Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {
    createdAt: 1625624508516,
    updatedAt: 1625624508516,
    id: 53,
    name: 'Peter Quinn',
    email: '[email protected]',
    avatar: 'https://randomuser.me/api/portraits/men/32.jpg',
    location: 'Langley',
    bio: 'Rather not say'
  }

      at Object.module.exports.bootstrap (C:\Users\fangc\Dev\chat-app\new-chat-app\config\bootstrap.js:27:36) {
    code: 'E_INVALID_NEW_RECORD',
    details: 'Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {\n' +
      '  createdAt: 1625624508516,\n' +
      '  updatedAt: 1625624508516,\n' +
      '  id: 53,\n' +
      "  name: 'Peter Quinn',\n" +
      "  email: '[email protected]',\n" +
      "  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',\n" +
      "  location: 'Langley',\n" +
      "  bio: 'Rather not say'\n" +
      '}'
  },
  isOperational: true,
  code: 'E_INVALID_NEW_RECORD',
  details: 'Could not use specified `createdBy`.  Expecting an id representing the associated record, or `null` to indicate there will be no associated record.  But the specified value is not a valid `createdBy`.  Instead of a number (the expected pk type), got: {\n' +
    '  createdAt: 1625624508516,\n' +
    '  updatedAt: 1625624508516,\n' +
    '  id: 53,\n' +
    "  name: 'Peter Quinn',\n" +
    "  email: '[email protected]',\n" +
    "  avatar: 'https://randomuser.me/api/portraits/men/32.jpg',\n" +
    "  location: 'Langley',\n" +
    "  bio: 'Rather not say'\n" +
    '}'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.