Giter Site home page Giter Site logo

rust-lang-ve / rust-lang-ve.github.io Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 1.95 MB

:octocat: rust-lang-ve's GitHub Page made with Yew because we πŸ’– Rust!

Home Page: https://rust-lang-ve.github.io/

License: Apache License 2.0

HTML 0.56% Rust 97.25% JavaScript 2.19%
rust rust-frontend yew gh-pages frontend gpm rust-lang octocat

rust-lang-ve.github.io's Introduction

rust-lang-ve.github.io

:octocat: rust-lang-ve's GitHub Page made with Yew because we πŸ’– Rust!

🚴 Development

Requirements

  • GitHub Personal Access Token for GPM
  • NodeJS (Yarn)
  • Cargo

Setting up .npmrc to fetch GPM

This project makes use of a package served by GPM (GitHub Package Manager). In order to fetch this package you must create a .npmrc file in your home directory (touch ~/.npmrc), then go to https://github.com/settings/tokens and clic on Generate new token, create your token with full access to avoid issues fetching the package, copy your token to your clipboard and finally append the following to the .npmrc file you created before.

//npm.pkg.github.com/:_authToken=<YOUR PERSONAL ACCESS TOKEN>

Finally run yarn in the project directory to install packages.

IMPORTANT Do not share your Personal Access Token with anyone! This token grant access to your GitHub profile!

πŸ› οΈ Build

When building for the first time, ensure to install dependencies first.

yarn install
yarn run build

πŸ”¬ Serve locally

yarn run start

πŸ”‹ Batteries Included

  • wasm-bindgen for communicating between WebAssembly and JavaScript.
  • wee_alloc, an allocator optimized for small code size.

rust-lang-ve.github.io's People

Contributors

estebanborai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rust-lang-ve.github.io's Issues

Implement Projects Section

Implement the Projects section

Layout

Projects Layout

Functionality

The Projects section should fetch the repositories from GitHub and list all of them if more than 10 repositories are available then a toggle should be shown to hide the half of the section.

Design

image

Implement Contributors Section

Implement the Contributors section

Layout

Contributors Layout

Functionality

The contributors section should fetch contributors from organization through the GitHub API and list them.
Contributors must be shown in random order every time the site refresh.

Design

image

No support for repositories with no description

Background

Repositories from GitHub are represented by the Repository struct as follows.

pub struct Repository {
  pub description: String,
  pub language: Lang,
  pub name: String,
}

Where description and name expects a String value and language a fixed value from the Lang enum.

Issue

Some repositories may not have a description defined at the moment of fetching repositories from GitHub, breaking the deserialization process and resulting in a call to FetchFailed.

Solution

Add support for repositories with no description, making the description an optional value.

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.