Giter Site home page Giter Site logo

ashco-2019 / profiler-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from firefox-devtools/profiler-server

0.0 1.0 0.0 1.7 MB

Firefox Profiler server and data storage infrastructure

License: Mozilla Public License 2.0

JavaScript 93.44% Dockerfile 1.60% Python 4.76% Shell 0.20%

profiler-server's Introduction

Firefox profiler server

Matrix

Welcome to the repository for the Firefox profiler server! This server implements some APIs needed by the profiler UI.

Here are some links to know more:

APIs

The APIs are documented in API.md.

Develop and running the server locally

Install the local tooling

You will need a recent enough version of Yarn v1, version 1.10 is known to work correctly. You can install it into your home directory on Linux and probably OS X with:

cd /tmp
wget https://yarnpkg.com/install.sh
chmod a+x install.sh
./install.sh

or follow the instructions specific to your OS on Yarn's website.

Download the profiler code and install its dependencies

To download and prepare the Firefox Profiler server run:

git clone [email protected]:firefox-devtools/profiler-server.git
cd profiler-server
yarn install

Configure the server

Then you'll need to configure the server. We use environment variables for this, and the convention of a .env file. Conveniently we provide a file .env.example that you can first copy to .env then edit following the comments inside the file.

Note that the profiler server uses 2 external services: Google Cloud Storage and Bitly and you'll need accounts to use the server's endpoints that need them. Both of them provide free accounts. The documentation in docs-developer/google-storage.md explains further how to configure Google Cloud Storage.

Run the server

Lastly you can run the server with:

yarn start

This will start the server on port 5252.

Build or pull a docker image

We provide a Dockerfile, the very same one we use to build our official docker image. Find more in the dedicated documentation.

Also the images we use for production are public, you can pull latest versions with:

  • for master: docker pull mozilla/profiler-server:master-latest
  • for production: docker pull mozilla/profiler-server:production-latest

Again, look the dedicated documentation to know more.

Discussion

Say hello on Matrix in the Firefox Profiler channel (#profiler:mozilla.org).

License

MPL v2

profiler-server's People

Contributors

julienw avatar depfu[bot] avatar dependabot[bot] avatar gregtatum avatar

Watchers

James Cloos 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.