- Node.js
- Express.js
- MongoDB
- Mongoose
- Angular
- SASS (*.scss)
- Node >= v6.9.2
- NPM >= v3.10.8
- Yarn >= v0.21.3 or
npm install -g yarn
- MongoDB
yarn
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
- Server running on http://localhost:3000
- Access http://localhost:3000/angular
-
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
yarn test:server
- 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
Check Releases for detailed changelog.
MIT license © Hemerson Vianna