http://nodepop.lmalvarez.es/images/anuncios/iphone7.jpg
Cloning repository
https://github.com/elemikelo/Nodepop
- Enter to the folder of the project:
$ cd Nodepop
- Install Dependencies:
$ npm install
- Run scripts 'Install_db' for add users and advertisements. (Note: Run Mongo DB previously):
$ node /db/install_db.js
- Start with the project:
$ npm start
Endpoint
(GET) List advertisements: http://localhost:3000/apiv1/advertisements
filters parameters : filter(price, name, tags), sort and limit.
Endpoint Register
(POST) Register : http://localhost:3000/apiv1/users/register
Parameters:
username: String
password: String
email: String
Endpoint login
(POST) Authenticate : http://localhost:3000/apiv1/users/login
Parameters:
username: String
password: String