Giter Site home page Giter Site logo

marcjal / frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cambiatus/frontend

0.0 0.0 0.0 8.25 MB

Cambiatus Web based frontend using Elm

Home Page: https://app.cambiatus.io

License: GNU Affero General Public License v3.0

JavaScript 8.36% HTML 0.34% Elm 90.18% CSS 1.12%

frontend's Introduction

Cambiatus frontend

This project is bootstrapped with Create Elm App.

You must have yarn installed to develop or build.

Development

yarn install
yarn start

To update the GraphQL Elm files, run:

yarn generate-graphql

Code Quality

We check JS with StandardJS and Elm with elm-review before the git push using husky. You can also run yarn standard and yarn review at any moment to make sure your code is passing the linters.

You can also use elm-analyse to get even more insights about the code. This package is not included in the repo, you should install it manually:

yarn global add elm-analyse

elm-analyse              # view analyse result in terminal
elm-analyse -p 3001 -s   # show extended analyse in the browser on `localhost:3001`

Build

yarn install
yarn build

Configurations

Our app have a somewhat complex configuration stack, allowing the app to run without any changes, connecting to the staging environmnent. Here is an outline of all the configuration files and how the interact:

  • src/scripts/config.js is the bottom level config. All the defaults are stored here for DEV and PROD environments.
  • env-config.js is the config for the dev/prod/demo servers. This file overwrites the defaults from the config.js above. Currently, this file is not used in the local dev environment, on the localhost it won't be loaded correctly. In the repo, this file contains the data for the Staging server (in Demo it will be different, in a dedicated server for a community it will be different, etc.).
  • src/elm/Flags.elm is the Elm configuration file. We start our Elm app and send a port with all that comes from src/scripts/config.js. Since we need to decode JSON values on Elm, it comes with some default values so the app won't fail to load, we default it to some values specified there.

frontend's People

Contributors

lucca65 avatar zacck avatar amiskov avatar skyleite avatar dependabot[bot] avatar victorgdev avatar pancakem avatar alissonfpmorais avatar gustavonmartins avatar zequez avatar jerrynyoike avatar altjohndev 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.