Giter Site home page Giter Site logo

nandedamana / flathub-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flathub-infra/website

0.0 0.0 0.0 28.23 MB

Monorepo with website and API

Home Page: https://flathub.org

License: Apache License 2.0

Shell 0.43% JavaScript 1.10% Python 26.40% TypeScript 71.67% HTML 0.01% Mako 0.03% Dockerfile 0.14% SCSS 0.23%

flathub-website's Introduction

Backend CI Frontend CI Translation status

flathub.org

This is the source code for the website, both backend and frontend. That's running on https://flathub.org.

Code contribution

First of all thanks for considering contributing to this project!

Pull requests are welcome. Please, create an issue first explaining what you want to do and how.

If you want to contribute translations, please check out the instructions below.

Development

You'll need git, yarn, docker and docker-compose-plugin.

Go to the folder where you manage your projects and checkout this project.

Then start the backend:

cd backend
docker compose up

You might need to use --build to rebuild the images, when dependencies change.

Use another terminal session to run the following or use your browser to go to https://localhost:8000/docs and use the UI to run the /update endpoint. This will populate the database with the latest data from Flathub.

curl -X POST localhost:8000/update

Then open a terminal and go to the frontend folder. If it's the first time you run it, run

yarn

Then you should be able to start the dev server and see changes to the code:

yarn dev

Generating api client

We're generating the api client from the openapi spec. To do so, make sure the backend is running and then run:

yarn openapi-codegen

Storybook

You can also start the storybook via:

yarn storybook

More backend instructions

You can find more backend instructions in the README in the backend folder.

Translations

We're using Weblate to translate the UI. So feel free, to contribute translations over there.

Translation status

Stripe payment testing

In both staging and development environments, Stripe is running in test mode (all data is fake). To test payment, card details can be used from https://stripe.com/docs/testing.

flathub-website's People

Contributors

razzeee avatar dependabot[bot] avatar barthalion avatar weblate avatar kymckay avatar jameswestman avatar danielsilverstone-ct avatar bilelmoussaoui avatar ajr0d avatar jakobdev avatar tchx84 avatar jhorbowicz avatar jimmac avatar sorin-davidoi avatar oersen avatar gasinvein avatar lesik avatar better-salmon avatar comradekingu avatar danieltolentino avatar xfgusta avatar kbdharun avatar mijorus avatar bbhtt avatar wjt avatar umairraza96 avatar cassidyjames avatar vikdevelop avatar ovari avatar yangyangdaji 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.