This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd the-forum
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.
API Contract / Documentation
Categories
GET /api/categories - 200 [] POST /api/categories - 201 created category PUT /api/categories/:id - 201 updated category DELETE /api/categories/:id - 201
Accounts
POST /api/accounts - 201 sign up POST /api/accounts - 201 sign in PUT /api/accounts/:id/deactivate - 201 - Deactivate account PUT /api/accounts/:id/activate - 201 - Activate account
Posts. (Authenticated)
GET /api/posts - 200 [] POST /api/posts - { title, content, categoryId } headers: { authorisation: ‘’Bearer token } - 201 created post PUT /api/posts/:id - { title, content, categoryId } headers: { authorisation: ‘’Bearer token } - 201 updated post DELETE /api/posts/:id - { title, content, categoryId } headers: { authorisation: ‘’Bearer token } - 201
Comments (Authenticated)
GET /api/posts/:postId/comments - 200 [] POST /api/posts/:postId/comments - created comment DELETE /api/posts/:postId/comments/:commentId - created comment
Favourites (Authenticated)
PUT /api/posts/:postId/favorite - 201 (Toggle) PUT /api/posts/:postId/unfavorite - 201 (Toggle)