Git Product home page Git Product logo

crud-api's Introduction

[RU] Проект: crud-api

  • Используйте версию Node.js: LTS v18.12.1
  • Написано в Windows 10 Enterprise LTSC 2019
  • Перед запуском установите node_modules используйте команду:
npm i
  • Программа запускается с помощью npm-script
  • Для запуска в production режиме используйте команду:
npm run start:prod
  • Для запуска в development режиме используйте команду:
npm run start:dev
  • Для запуска тестов используйте команду:
    • В рандомных тестах можно поменять число добавляемых объектов
npm run test
  • Для запуска балансировщика используйте команду:
npm run start:multi
  • Конечная точка api/users
    • GET api/users получить всех пользователей.
    • GET api/users/${userId} получить пользователя по userId.
    • POST api/users создать нового пользователя используя схему ниже.
      {
          "username":   string,
          "age":        number,
          "hobbies":    Array<any>
      }
    • PUT api/users/{userId} изменить существующего пользователя по userId используя схему выше.
    • DELETE api/users/${userId} удалить существующего пользователя по userId.

[EN] Project: crud-api

  • Use Node.js version: LTS v18.12.1
  • Written in Windows 10 Enterprise LTSC 2019
  • Before running install node_modules use the command:
npm i
  • The program is launched using npm-script
  • To run in production mode, use the command:
npm run start:prod
  • To run in development mode, use the command:
npm run start:dev
  • To run tests, use the command:
    • In random tests, you can change the number of added objects
npm run test
  • To start the balancer, use the command:
npm run start:multi
  • Endpoint api/users
    • GET api/users get all users.
    • GET api/users/${userId} get user by userId.
    • POST api/users create a new user using the scheme below.
      {
          "username":   string,
          "age":        number,
          "hobbies":    Array<any>
      }
    • PUT api/users/{userId} change an existing user by userId using the scheme above.
    • DELETE api/users/${userId} delete an existing user by userId.

crud-api's People

Contributors

sokolw avatar

Watchers

 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.