Code Monkey home page Code Monkey logo

node_rest's Introduction

Node_rest

This is rest api for boost start by node js with jwt authentification, role-based route control on sqlite3 with sequelize orm and mock tests api endpoints
Базовый рест сервер для резкого старта разработки с jwt токенами, разделением доступа по роутам между ролями, с тестами по рестовым методам и подготовленной базой sqlite3 c sequelize.

how to run
npm install
npm start
send post to localhost:3000/api/login with body {"login": "admin","password": "admin:}, response return to you jwt token
add jwt to use rest api

to test
npm test

win7 sequilize node_modules.bin\sequelize migration:generate --name user_add_name
node_modules.bin\sequelize db:migrate
node_modules.bin\sequelize model:generate --name Products --attributes model:string,manufacturer_id:integer,serial_num:string,inventory_num:string,ip_addr:string,store_id:integer
node_modules.bin\sequelize model:generate --name Stores --attributes name:string,address:integer,chief_name:string,telephone:string,email:string
node_modules.bin\sequelize model:generate --name Manufacturers --attributes name:string
node_modules.bin\sequelize model:generate --name Models --attributes name:string,manufacturer_id:integer

node_rest's People

Contributors

evgenjin avatar

Stargazers

 avatar

Watchers

 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.