GithubHelp home page GithubHelp logo

isabella232 / store-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elementary/store

0.0 0.0 0.0 29.99 MB

The elementary OS merch store website

Home Page: https://store.elementary.io

License: GNU Affero General Public License v3.0

JavaScript 2.26% Elixir 48.40% HTML 38.93% Dockerfile 0.44% SCSS 9.96%

store-2's Introduction

elementary

Store

The elementary OS merch store website



Update Translation status


This repository is an elixir website for https://store.elementary.io. It connects to Printful for products, and Stripe for payment processing.

Developing on elementary OS (or Ubuntu)

This guide assumes elementary OS 6 or Ubuntu 20.04; the steps should be similar for any Ubuntu-based OS, but may differ bassed on the exact distribution or version.

  1. Install Docker

    You can install Docker however you'd like, but we recommend following this DigitalOcean guide, including adding your user to the docker group.

  2. Install docker-compose

    Similarly, you can install docker-compose however you see fit, but the fastest way is probably via Python's pip:

    1. sudo apt install python3-pip
    2. pip3 install docker-compose
  3. Configure secrets for development

    Add your Printful API key to config/dev.secret.exs like so:

    import Config
    
    config :store, Printful.Api,
      api_key: "aaaaaaaa-bbbb-cccc:dddd-eeeeeeeeeeee"

    To test Stripe integration as well, add your Stripe test keys to config/dev.secret.exs:

    config :stripity_stripe,
      api_key: "sk_test_aBcDeFgHiJkLmNoPqRsTuVwX",
      public_key: "pk_test_zYxWvUtSrQpOnMlKjIhGfEdC"

That's it, you're all set to start contributing.

Running

This repository contains a docker-compose.yml file for easier development. Make sure you have docker-compose installed, then run these commands:

  1. docker-compose build to build the containers. If you make changes to any dependencies, or are getting issues where code does not seem to update, re-run this step.

  2. docker-compose up to start the server and dependencies. This is your main command and after you run steps 1 and 2, you should only need to run this command to get back up and running.

If you change any configuration/secrets, you need to restart docker-compose up for it to take effect.

Translations

All translations are extracted to the template files when new commits are pushed to master. If you would like to help translate this site, please see the elementary weblate instance.

Deploying

This repository is setup with continuous integration and deployment. If you want to deploy your changes, all you need to do is open a PR to the master branch. Once your PR is accepted and merged in, it will automatically be deployed.

License

This repository is made available under the terms of the GNU Affero General Public License version 3 or any later version. See LICENSE for details.

store-2's People

Contributors

weblate avatar btkostner avatar dependabot[bot] avatar cassidyjames avatar ryonakano avatar 4jnsy6fcvqzv avatar ihorhordiichuk avatar matfantinel avatar xristodoulos99 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.