Commit Graph

31 Commits

Author SHA1 Message Date
Ahmad Abdolsaheb
27c8d564e4 fix(client): replace Stripe with PayPal (#41924)
* feat: remove stripe payment option from client

* feat: remove stripe completely

* fix: remove last Stripe remnants

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-03 11:45:23 +03:00
Oliver Eyton-Williams
5d46e2830a feat: add Docker build (#41187)
* feat(docker): build and use client and api images

* feat: always use .env

dotenv fails without throwing if the .env file is missing and never
overwrites variables if they already exist. As such, we can use it in
build pipelines.

* fix: remove quotes from env vars

dotenv normalises quoted and unquoted strings (X=x, X='x' and
X="x") all become the same .env object {X: 'x'}. However, Docker's
env_file does not (the three cases are distinct).  As a result, we
should use unquoted strings for consistency.

* fix: provide custom warning when .env is missing

* feat(docker): include client-config

* fix(docker): remove build packages from api image

* fix(docker): run script from correct dir

* fix(docker): correct permissions and dests

* fix(docker): consolidate run steps

This is standard practice, but did not have a noticable affect on the
image size

* fix(docker): clean the npm cache

Prior to this step the image was 1.11GB uncompressed and we got a modest
saving, 1.09GB after.

* refactor(docker): regexless COPY directives

* feat(docker): use alpine

This shrinks the image down to 259MB

* fix(docker): update build scripts

* fix: correct the server Dockerfile RUNs

* DEBUG: expose mysql port for seeding

* chore: update client Dockerfile's node versions

* fix: remove executable permissions from index.js

It's not a cli, so I don't think it needs to be executable.

* chore: update node and remove stale comments

* feat: use ENTRYPOINT + CMD to allow runtime config

* fix: add CURRICULUM_LOCALE arg

* feat: allow client port configuration

* feat: allow api port to be configured

* refactor: use unique variable names for ports

* fix: add default CLIENT_PORT

* refactor: clean up
2021-04-20 19:29:31 +05:30
Mrugesh Mohapatra
6a09b9bce2 fix(client): refactor dynamic URLs based on lang (#40824) 2021-01-31 12:15:41 +05:30
Mrugesh Mohapatra
0b944ddfde fix(env): update variable validations (#40813) 2021-01-31 12:15:40 +05:30
Nicholas Carrigan (he/him)
58c6c54c67 feat(client): redesigned navigation (#40709)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2021-01-31 12:15:40 +05:30
Mrugesh Mohapatra
77c46dba2c fix(i18n): redirect based on Referer header (#40512)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:34 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Oliver Eyton-Williams
24f57ca7c2 fix: ignore .env in pipelines (#40327) 2020-11-27 09:32:50 -06:00
Oliver Eyton-Williams
ebb4e0d5cc fix: default to .env (#40315) 2020-11-25 23:15:59 +05:30
Oliver Eyton-Williams
61ba415717 fix: tighten up ensure-env and env.js (#39694) 2020-09-26 00:40:17 +05:30
Oliver Eyton-Williams
4f68cc3126 fix: update env validation and include newest var (#39661) 2020-09-24 20:04:27 +05:30
Ahmad Abdolsaheb
9b1077acf5 fix: render editor tabs if SHOW_UPCOMING_CHANGES is 'true' (#39513) 2020-09-16 11:54:13 +05:30
Oliver Eyton-Williams
c772382d59 fix: remove remnants of servicebot
None of the code was still in use.
2020-09-04 00:14:24 +05:30
Mrugesh Mohapatra
33de8a03b5 fix: remove all extraneous env vars (#39443) 2020-08-21 03:59:27 +05:30
Twaha Rahman
7155c87e8b fix: prevent dev tools from accessing state in prod (#38669)
* Fixed Redux dev tool plugin in production problem

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>

* Update client/src/redux/createStore.js

Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Fixed ESLint error

* Second try to fix linting issue

* Third try to fix lint issues

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* Update client/src/redux/createStore.js

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix: use env.json for ENVIRONMENT

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-08-20 01:22:59 +05:30
mrugesh
786626f21e fix(PayPal): update config pickup from env (#38423)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-03-23 19:33:37 +05:30
Ahmad Abdolsaheb
6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
Oliver Eyton-Williams
e3b77a62cc feat: simplify development setup
Warns if .env is missing.  Combines the three docker installation
commands into one, updating the docs accordingly.

Also removes the libcimp patch as npm already has it.
2019-12-13 01:05:38 +05:30
Oliver Eyton-Williams
c660b389a8 fix(donate): handle missing stripe keys (#37847)
* fix: gracefully handle missing stripe keys

* fix: remove state updates from render (donate)
2019-11-30 01:41:31 +05:30
Mrugesh Mohapatra
aeec1bb9e6 feat(donate): integrate servicebot 2019-11-19 23:09:53 +05:30
Oliver Eyton-Williams
e72855dad3 fix: handle invalid Algolia keys gracefully in dev (#37088)
Invalid keys throw an error in production, but just cause invalid
PropTypes and build warnings in development.
2019-10-08 01:19:43 -07:00
mrugesh
4889e0fdc6 fix(client,tools): update proxy and location paths (#37106) 2019-10-07 16:42:07 -07:00
Oliver Eyton-Williams
1130a1c0df chore: update to beta of react-instantsearch-dom (#36843)
* chore: update to beta of react-instantsearch-dom

* feat: use .env variables for search keys
2019-10-04 18:03:20 +02:00
Mrugesh Mohapatra
ac50216949 fix: NODE_ENV conflicts on pipelines 2019-08-19 01:37:32 +05:30
Bouncey
e417f3f0d4 chore: Apply linting fixes 2019-02-19 14:30:27 +05:30
Mrugesh Mohapatra
6b7c7d6033 fix(donate): update styling and refactor components 2019-02-14 14:14:10 +00:00
Bouncey
0369dfbf37 fix: Add news to the env file 2019-02-06 04:00:52 +05:30
Bouncey
d79f9f4899 feat(docker): Prep master for docker deploys 2019-02-04 20:13:51 +05:30
Bouncey
aa668ca30e feat(langs): Prep Spanish challenges for parsing 2018-10-11 02:15:05 +05:30
Bouncey
fec10caf67 feat(api): Add api location as an env var 2018-08-30 20:43:55 +05:30
Bouncey
ef18f5a931 fix(api): Use /internal for API entry 2018-08-30 20:43:55 +05:30