Code Monkey home page Code Monkey logo

orm-people-skills's Introduction

ORM-People-Skills

Dependecies

  1. sequelize : npm install --save-dev sequelize
  2. sequelize : npm install --save-dev sequelize-cli
  3. postgres : npm install --save pg
  4. sequelize-isunique-validator : npm install--save sequelize-isunique-validator

Database Configuration

  1. Database's name : db_user_skills
  2. Table :
    • users :
      • username (STRING)
      • password (STRING)
      • email (STRING)
    • skills
      • name (STRING)
      • value (STRING)

Note

  1. install dependencies
  2. express configuration : express .
  3. sequelize init
  4. edit config/config.json
  5. make Users table : sequelize model:create --name Users --attributes "username:string,password:string,email:string"
  6. migrate : sequelize db:migrate
  7. make Skills table : sequelize model:create --name Skills --attributes "value:string"
  8. migrate : sequelize db:migrate
  9. seeding admin data into Users table : sequelize seed:create --name seed_users_admin
  10. seed the admin seeder file sequelize db:seed --seed seeders/20161106234045-seed_users_admin.js
  11. add new attribute to Skills table sequelize migration:create --name add_name_attribute_to_skills_table
  12. migrate : sequelize db:migrate
  13. add FK : sequelize migration:create --name add_FK_to_skills_table
  14. migrate : sequelize db:migrate

Contributor

Ken Duigraha Putra © 2016

License

MIT

orm-people-skills's People

Contributors

kenduigraha avatar

Watchers

James Cloos avatar  avatar

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.