Commit Graph

54 Commits (390bc824afb2e9bba14ba943c9082befdb211199)

Author SHA1 Message Date
Oliver Eyton-Williams 65786b6929
fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
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
Tom c56a9c966f fix(client): address nav UX issues (#40823)
Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-31 12:15:41 +05:30
Mrugesh Mohapatra 6a09b9bce2 fix(client): refactor dynamic URLs based on lang (#40824) 2021-01-31 12:15:41 +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
Tom 3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
Ahmad Abdolsaheb bfc4c33b0c
fix: remove unused PAYPAL_SUPPORTERS var (#40361) 2020-12-01 14:51:24 +01:00
Oliver Eyton-Williams 24f57ca7c2
fix: ignore .env in pipelines (#40327) 2020-11-27 09:32:50 -06:00
Mrugesh Mohapatra 53ad373e47
chore(cleanup): remove search indexing tools (#40070) 2020-11-02 15:05:59 +09:00
Mrugesh Mohapatra 6599301186 chore: remove docker scripts, config, etc. 2020-10-09 17:29:55 +02:00
Twaha Rahman 3e3652a788
Test(Cypress): Add tests for the landing page and the navbar (#39459)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-04 18:27:21 +02:00
Oliver Eyton-Williams bd68b70f3d
Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00
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
Oliver Eyton-Williams 7055211959 fix: simplify language specific testing
Prevents multiple languages' challenges from being tested at once.
2020-08-16 04:45:19 +05:30
Oliver Eyton-Williams 9b297ed76d fix(curriculum): control visibility via env 2020-05-25 16:25:19 +05:30
Oliver Eyton-Williams c830951beb
fix: add SENTRY_ENVIRONMENT variable (#38446)
Adds a tag to group Sentry events
2020-03-26 18:15:49 +05:30
Oliver Eyton-Williams 35751bacf0 chore: remove rollbar from client and .env 2020-03-26 16:51:17 +05:30
Oliver Eyton-Williams 10a6622546 feat(api): enable Sentry reporting 2020-03-26 16:51:16 +05:30
Mrugesh Mohapatra d8e5f3ebc8 feat(tools): add helper for testing webhooks locally 2020-03-19 17:18:53 +05:30
Mrugesh Mohapatra f9277b4fec fix(env): make PayPal env config dynamic 2020-03-16 18:35:52 +05:30
Ahmad Abdolsaheb 6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
Mrugesh Mohapatra 2cb8c16b28 fix(donate): control plan creation with environment variable 2019-11-19 23:09:52 +05:30
Kristofer Koishigawa 76d9eb0ab6 fix: enable search in dev mode (#37298) 2019-10-15 17:22:17 +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
Kristofer Koishigawa 9f372d014d feat: news indexing script (#36512)
* feat: Add script to poll Ghost for all published posts and construct index for Algolia.

* feat: Add script to poll Ghost for all published posts and construct index for Algolia.
2019-07-29 19:41:29 +05:30
Bouncey 2789824374 chore: Import search-assets and refactor data source/push 2019-06-08 03:18:55 +05:30
Valeriy 01edc58a2a chore(tools): use DOCKER_HOST_LOCATION env var to set container host 2019-03-15 15:50:30 +05:30
Bouncey e3d4764ff5 fix: Export news location from env 2019-02-06 04:00:52 +05:30
Mrugesh Mohapatra 381ebb0b32 fix: remove extraneous key 2019-01-15 19:52:19 +05:30
Todd Chaffee f0c8211e95 feat: use mock authentication for local dev 2019-01-15 19:52:19 +05:30
Valeriy S 2137da5aa6 test(curriculum): filter test langs by an env variable 2019-01-10 12:54:59 +00:00
Bouncey 8870a063e4 fix: Use env variable for paypal donations 2018-12-04 17:42:12 +05:30
Stuart Taylor d327a5c36b Feat: News in the client app (#34392) 2018-11-29 15:12:15 +03:00
Bouncey cfbb973c8b feat(redirects): Generate _redirects on build 2018-10-09 09:49:01 +01:00
Bouncey d3e4d88f0c feat(locale): Add LOCAL env var 2018-10-07 14:51:09 +05:30
Mrugesh Mohapatra 9e869a46fc fix: add sample env 2018-09-27 20:45:50 +05:30
Bouncey 46a217d0a5 chore(server): Move api-server in to it's own DIR 2018-09-03 17:47:48 +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
Mrugesh Mohapatra ebba8e9c64 fix(auth0): Unify authentication via auth0 as provider 2018-06-29 21:29:20 +01:00
Stuart Taylor 4f77da02be feat(donate): Add donate api (#17459)
* feat(donate): Add donate api

* feat(donation): Add ability to track donations via email
2018-06-07 16:35:06 -05:00
Stuart Taylor 6315c6eae0 feat(reporting): Use rollbarjs for error reporting in production (#17259) 2018-05-29 18:38:55 +05:30
mrugesh mohapatra d1a2afbee4
fix: add keys to sample.env (#17196) 2018-05-21 11:26:56 +05:30
mrugesh mohapatra 0271e78a1d chore(opbeat): Remove opbeat react logging (#17173) 2018-05-16 15:22:43 +01:00
Otto Jongerius ef37c3bee2 feat: Allows sharing of network (#16937)
build(docker): Expose mailhog port.

build(Docker): Improve wording.

build(docker): Mailhog and network changes.

    * Add mailhog container to shared network to enable connectivity
    * Configure project name for docker compose in .env sample file,
        without it the basename of the repo directory is used, which
        makes it unreachable for other services
    * Set mailhog host to mailhog (instead of localhost) if MAILHOG_HOST
      env var is set
    * Expose 1025 to enable local troubleshooting

build(docker): Update README to reflect compose changes.
2018-03-30 09:21:09 +05:30
Stuart Taylor fa59bcfd7b fix(credentials): Pass credentials through DefinePlugin 2018-03-09 15:59:45 +00:00