Code Monkey home page Code Monkey logo

teslaapi's Introduction

TeslaAPI

Tesla forum database and RESTful API

Requirements

Getting started

  1. clone the repo
  2. start mongo
  3. cd into repository directory
  4. run npm install
  5. run node api.js

The yay API is now running on port 3000.

teslaapi's People

Contributors

cham avatar datagutt avatar daleharvey avatar ericlindstrom avatar

Stargazers

 avatar  avatar allen212 avatar Jonathan Mills avatar Tyson avatar Simon Dann avatar Chase McClure avatar Shoeb Ahmed Mogal avatar ilia avatar  avatar  avatar

Watchers

Tyson avatar Joshua May avatar  avatar James Cloos avatar ilia avatar

teslaapi's Issues

reverse the relationship between Thread and Comment

set the thread _id as an index on the comment table, remove the array from the Thread model, alter endpoints accordingly

this will fix an issue where very large threads slow down queries that select them

thread sorting performance

applying sorting to getThreads increases query time by 100-200% on large collections (million+ comments). Adding an index helps but we should optimise this for at least the default sorting (last comment time).

Add solr

use AOP / mongoose middleware to hook it into the post of a save operation

count performance

is the main bottleneck on threads calls now, move this to a separate record and manage it with the application?

Need a user profile call

Possibly:

/user/:username/profile

don't think we'll need a summary version. Needs to return all the info required for the user profile page, and I guess we should strip out participated, favourites etc from the user document to cut down on the returned JSON size.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.