Closed

API with nodejs and mongodb .

This project received 10 bids from talented freelancers with an average bid price of €292 EUR.

Get free quotes for a project like this
Employer working
Project Budget
€30 - €250 EUR
Total Bids
10
Project Description

We need an API with nodejs and mongodb.

We need the API and database.

The methods required are:

login ( user, pass ) : return a sesionkey

Data are validated against the database and create a temporary collection with sessions, valid for 60 minutes.

Calling the method without parameters, launches a process to remove expired sessions.

Each time you call the login method eliminates the user's session and creates the new.

The session key is a GUID or similar.

The password is stored in MD5.

getContent ( sesionkey , lat , lon , type (string ) , speed ( int ) ) : returns object

We have a collection with geo data. This method returns the 50 closest to the specified coordinates. Type and speed, are not used at the moment.

logs ( sesionkey , type (string ) , lat , lon , speed ( int ) ) : returns true or false

This method stores in a collection the information received. No sesionkey stores, stores the associated user id .

Collections in MongoDB :

• secure_users ( _id , username , pass, date_insert , date_lastlogin )

• secure_sesions ( sesionkey , date_expire )

• content ( _id , title , content , LatLon ( float [ ] ) , time )

• logs ( date_insert , user_id , type, LatLon , speed)

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online