Giter Club home page Giter Club logo

rakutentech.github.io's Introduction

Website of Rakuten Open-source.

This app is written in Elm. It requires to be compiled before being published. Keep reading to learn how to modify it.

To install the development environment

The only prerequisite is to have Node.js installed. You can download it from https://nodejs.org/en/download/

After that, clone the repository with

git clone https://github.com/rakutentech/rakutentech.github.io.git

then move into the project folder and install the dependencies:

cd rakutentech.github.io
npm install

now you are ready to run the development server with

npm start

this will download other dependencies, start a server and open a new page in the browser. Now you can start your favorite editor and start changing the application. Every time you save the window in the browser will automatically refresh.

When you are happy with the result you can just commit your changes in the remote repository through a pull request. As soon as the changes are merged into the master branch they will be available online.

The main files that you may need to edit are in the src folder. If you want to modify the footer, for example, edit the file ViewFooter.elm. For the header: ViewHeader.elm, etc.

Optimizer (optional step)

If you prefer to minify the Javascript file, remember to run this command before committing your modifications:

npm run optimize

Debug mode

If you are debugging the application you may compile it in debug mode using the command

npm run debug

After running this command, remember to run either cmd/start or npm run optimize before submitting your modifications to production.

How the app works

The app automatically get the list of the repositories from Github. It also has a list of hard coded repositories in the file Repos.elm. Then it concatenated the two list together and show them in the page.

Files details

Folder cmd

Contain all the commands that can be executed

Folder icons

Icons

Folder img

Images

Folder js

Javascript files (Elm compiled + starter)

Folder elm-stuff

Contains Elm dependencies, not to be pushed in the repository

Folder node_modules

Contains other dependencies, not to be pushed in the repository. This folder contains, among other things, Elm compiler and elm-live.

Folder scr

  • Internal (folder) : This folder contain the rest of the application that usually don't need to be modified unless new feature need to be added to the site
  • Conf.elm : Configuration values such as colors and sizes
  • Repos.elm : A list of repositories that are not under the rakutentech github account
  • ReposFilter : Initial filter of repos. For example exclude repos that have no descriptions or that contains the word "deprecated"
  • ViewBody.elm : This file contain the tagline that appear at the top of the page and the paragraph underneath
  • ViewFooter.elm : The footer
  • ViewHeader.elm : The header
  • ViewRepo.elm : This contain how the repo data is displayed in each card

Folder test-api

Examples of JSON responses used during development

Root Folder

  • elm.json : Meta data about the Elm project. Updated automatically by Elm.
  • favicon.ico : Favorite Icon
  • index.html : The main page
  • LICENSE : MIT License
  • package-lock.json : To manage npm dependencies. Updated automatically.
  • package.json : To manage npm dependencies
  • README.md : This file

rakutentech.github.io's People

Contributors

eesee avatar hyoshiok avatar lucamug avatar melvine avatar nemooudeis avatar satoryu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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