GithubHelp home page GithubHelp logo

gitter-badger / trakr.app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greeb/trakr.app

0.0 0.0 0.0 17.71 MB

Track car telemetry in 3D space

Home Page: https://trakr.app

License: MIT License

JavaScript 46.11% Sass 2.87% SCSS 6.86% Vue 43.94% Shell 0.21%

trakr.app's Introduction

License Build Status issues

Data

Really not sure how to do data atm we parse on server and on client to get nice data to animate car. Saving raw bytes would be 200MB/h at ~160 packets/second. So for now to test we only save XYZ to build worldmaps saved every 1000/2 ms. Frontend still gets full telemetry at 12 packets/second. We save the full telemetry bytes, frontend does parsing. Maybe implement Draco

Features

  • Three: Dynamic point rendering
  • Nuxt: Discord oauth
  • Nuxt: Usable Frontend
  • Three: Little "stress" page
  • Nuxt: Start of modular system for input data
  • Nuxt/Three: Custom Shader frontend
  • Nuxt: Simple Camera System
  • Nuxt: Simple Global maps

Contributing

Contributions are always welcome!

Development

To run the production version which takes URL into consideration for callbacks and CORS and also redirects to /about if not logged in

If you only wanna see the code for the WebGl/Three stuff there look at the assets folder.

First make sure you copy the example.env to .env

cp example.env .env

Read "Environment Variables" below

  yarn Install
  yarn dev

Games

This basically implements games assets/js/games

Url

Not really sure about this but for now, x is a uuid

Map

  • /map/x
    • /map/x/x

User

  • /user/x
    • /user/x/session/x
    • /user/x/map/x

Challange

  • /c/12345

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

IOPORT Socket.io port

URL Url for CORS and ssl later not really implemented yet if empty defaults to localhost

PORT App port also for CORS and stuff

JWTSECRET Secret used for JWT, can be generated with:

node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
#or
openssl rand 256 | base64

POSTGRES Postgres URL

DISCORDID Discord oAuth id

DISCORDSECRET Discord oAuth secret

Dump

Acknowledgements

trakr.app's People

Contributors

greeb avatar

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.