Giter VIP home page Giter VIP logo

crates.io's Introduction

crates.io

Source code for the default registry for Cargo users. Can be found online at crates.io

Installation

  • git clone this repository
  • npm install
  • bower install

Configuration

The app currently requires some configuration via environment variables to start up and run.

# Credentials for uploading packages to S3
export S3_BUCKET=...
export S3_ACCESS_KEY=...
export S3_SECRET_KEY=...

# Credentials for talking to github
export GH_CLIENT_ID=...
export GH_CLIENT_SECRET=...

# Key to sign cookies with
export SESSION_KEY=...

# Location of the *postgres* database
export DATABASE_URL=...

# Remote and local locations of the registry index
export GIT_REPO_URL=https://path/to/repo
export GIT_REPO_CHECKOUT=path/to/checkout

Running

To run the app, you need to run both the API server and the ember frontend server.

  • cargo build && ./target/server
  • ember server --proxy http://localhost:8888
  • Visit the app at http://localhost:4200.

Initialize the database

To initialize the database (or run any recent migrations):

./target/migrate

Running Tests

  • TEST_DATABASE_URL=... cargo test

JS tests (note these are not written yet)

  • ember test

  • ember test --server

  • export TEST_DATABASE_URL=cargo.test

  • cargo test

Building

  • cargo build
  • ember build

For more information on using ember-cli, visit http://iamstef.net/ember-cli/.

crates.io's People

Contributors

alexcrichton avatar sfackler avatar stefanpenner avatar wycats avatar

Watchers

 avatar  avatar  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.