Skip to content

sxsarena/crud-categories-angular-react-vue

Repository files navigation

Challenge

licence mit GitHub issues GitHub package.json version GitHub Release Date GitHub top language GitHub repo size GitHub All Releases

Resources

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • Angular
  • SASS (*.scss)

Prerequisites

Install

yarn

Usage

MongoDB must be running on port 27017

mongod

The next step is to import the database

mongoimport --db challenge  --collection categories --file database/categories.json

Start the application

yarn start

API

  • GET - find all - http://localhost:3000/api/categories

  • POST - Add - http://localhost:3000/api/categories

    • Ex. for Postman { "label": "test", "url": "#/test" }
  • GET - find by id - http://localhost:3000/api/categories/:id

  • PUT - udpate - http://localhost:3000/api/categories/:id

  • DELETE - delete - http://localhost:3000/api/categories/:id

Tests

yarn test:server

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -m 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

Log

Check Releases for detailed changelog.

License

MIT license © Hemerson Vianna