Skip to content

perf(): improve high network db query #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 390 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
390 commits
Select commit Hold shift + click to select a range
79101e3
feat(search): add populated search endpoint
sterlingrules Mar 5, 2020
efb0600
test(search): move to pending for now
sterlingrules Mar 5, 2020
a1e92cd
test(search): remove algolia init
sterlingrules Mar 5, 2020
640aa8d
Merge pull request #328 from SoftwareEngineeringDaily/feat/664-search…
sterlingrules Mar 5, 2020
6d6ae95
fix(): comment counting
sterlingrules Mar 6, 2020
c450c2f
fix(): remove malformed auth headers
sterlingrules Mar 6, 2020
a4ee3d4
Merge pull request #329 from SoftwareEngineeringDaily/fix-comment-counts
sterlingrules Mar 6, 2020
9b47ea6
Added admin topic edit
marcosschlup Mar 10, 2020
db80df9
fix(): search endpoint for mobile
sterlingrules Mar 10, 2020
ab72eb4
feat(): add topic search support, fix search props
sterlingrules Mar 11, 2020
75fd67b
chore(): code cleanup
sterlingrules Mar 11, 2020
9e6816a
Merge pull request #330 from SoftwareEngineeringDaily/feat-restore-se…
sterlingrules Mar 11, 2020
abec42c
fix(): give createdAtBefore default value
sterlingrules Mar 11, 2020
0366dce
fix(): profile path
sterlingrules Mar 11, 2020
f1aaea0
Merge pull request #331 from SoftwareEngineeringDaily/fix/679-public-…
sterlingrules Mar 11, 2020
6e27777
fix(): disappearing likes, ssl redirect
sterlingrules Mar 12, 2020
eda0fd4
chore(): code cleanup
sterlingrules Mar 12, 2020
9b4d9d0
Merge pull request #332 from SoftwareEngineeringDaily/fix-like-score
sterlingrules Mar 12, 2020
e7dd9f3
feat(): add content to activities
sterlingrules Mar 18, 2020
2dc7c4c
feat(profile): add mentions to profile activity
sterlingrules Mar 18, 2020
f248bcf
Merge pull request #333 from SoftwareEngineeringDaily/feat-profile-ac…
sterlingrules Mar 18, 2020
22d420d
fix(): user mentions, post title
sterlingrules Mar 20, 2020
eb21459
Added topic and topicpage
marcosschlup Mar 23, 2020
3206423
merge master and profile activities for profile
marcosschlup Mar 23, 2020
99b69ef
Fix empty maintainer update in topic
marcosschlup Mar 23, 2020
4d55921
Merge pull request #335 from SoftwareEngineeringDaily/feat/680-improv…
sterlingrules Mar 23, 2020
771af6f
Fix for deprecated pushAll in mongodb
marcosschlup Mar 24, 2020
79032a2
Fix search posts
marcosschlup Mar 24, 2020
665a0e8
Merge pull request #334 from SoftwareEngineeringDaily/feat/643-topics
marcosschlup Mar 24, 2020
b261463
feat(): add badge logic to profiles
sterlingrules Mar 25, 2020
ae523b6
fix(): handle empty activity
sterlingrules Mar 26, 2020
5aa5273
Publish option in TopicPage
marcosschlup Mar 26, 2020
0de510c
Added mail templates and topic changes email notification
marcosschlup Mar 27, 2020
f0856e3
Merge pull request #337 from SoftwareEngineeringDaily/feat/643-topics…
marcosschlup Mar 27, 2020
c256630
feat(): add icon and tooltip badge support
sterlingrules Mar 27, 2020
2bd1b51
Added Write topic interest routes
marcosschlup Mar 27, 2020
1b17fc0
Merge pull request #336 from SoftwareEngineeringDaily/feat/676-add-pr…
sterlingrules Mar 29, 2020
d058b12
Merge branch 'master' into feat/691-write
marcosschlup Mar 30, 2020
96af4de
Merge pull request #338 from SoftwareEngineeringDaily/feat/691-write
marcosschlup Mar 30, 2020
c6033bc
New specific routes for home sidebar options
marcosschlup Mar 30, 2020
3fde069
Merge pull request #339 from SoftwareEngineeringDaily/feat/684-homepa…
sterlingrules Mar 30, 2020
a7f43e1
Refresh browser profile pic on update
marcosschlup Mar 31, 2020
56c1e61
Merge pull request #340 from SoftwareEngineeringDaily/fix/647-profile…
marcosschlup Mar 31, 2020
3c1f920
Fix admin topic maintainer not found
marcosschlup Mar 31, 2020
842136f
Merge pull request #341 from SoftwareEngineeringDaily/fix/722-maintainer
marcosschlup Mar 31, 2020
a550809
Changed user search to limit 200
marcosschlup Mar 31, 2020
868bfd2
Merge pull request #342 from SoftwareEngineeringDaily/fix/722-maintainer
marcosschlup Mar 31, 2020
55de6b0
Added querystring search mongodb engine
marcosschlup Apr 1, 2020
1e2ed81
Merge pull request #344 from SoftwareEngineeringDaily/feat/search-query
marcosschlup Apr 1, 2020
f90517a
Changes to RSS cron and size
marcosschlup Apr 2, 2020
9b70d43
Merge pull request #345 from SoftwareEngineeringDaily/fix/673-rss
marcosschlup Apr 2, 2020
8440d20
Added topic page logo route
marcosschlup Apr 2, 2020
094a12c
Merge pull request #346 from SoftwareEngineeringDaily/feat/705-topic-…
marcosschlup Apr 2, 2020
19551d3
Added last name to profile
marcosschlup Apr 3, 2020
7ccad44
Merge pull request #347 from SoftwareEngineeringDaily/feat/721-requir…
marcosschlup Apr 3, 2020
1aee97d
Added slug to post standardSelectForFind
marcosschlup Apr 3, 2020
26babca
Merge pull request #348 from SoftwareEngineeringDaily/feat/729-profil…
marcosschlup Apr 3, 2020
50b333f
Added twitter account to public profile
marcosschlup Apr 6, 2020
37190c1
Merge pull request #349 from SoftwareEngineeringDaily/feat/694-login-…
marcosschlup Apr 6, 2020
8ded7d3
Added RSS length
marcosschlup Apr 7, 2020
5d5bfdf
Merge pull request #350 from SoftwareEngineeringDaily/fix/rss-itunnes
marcosschlup Apr 7, 2020
8b1a839
Fix RSS empty attr
marcosschlup Apr 7, 2020
16db437
Merge pull request #351 from SoftwareEngineeringDaily/fix/rss-empty
marcosschlup Apr 7, 2020
37a8677
Added lastName to topic maintainer query
marcosschlup Apr 8, 2020
5457c81
Merge pull request #352 from SoftwareEngineeringDaily/feat/743-mainta…
marcosschlup Apr 8, 2020
58d5dbb
Fix RSS build working just on first time
marcosschlup Apr 9, 2020
4c59aa9
Merge pull request #353 from SoftwareEngineeringDaily/fix/rss
marcosschlup Apr 9, 2020
10b31a6
Added maintainer twitter on topicpage route
marcosschlup Apr 20, 2020
c44e60c
Merge pull request #354 from SoftwareEngineeringDaily/feat/738-twitter
marcosschlup Apr 20, 2020
a3f9070
Added related tweet data to post model
marcosschlup Apr 21, 2020
146a78f
Merge pull request #355 from SoftwareEngineeringDaily/feat/739-post-t…
marcosschlup Apr 21, 2020
fb17cd9
Added new e-mail notification for comments in posts and topics
marcosschlup Apr 22, 2020
bb5f116
Merge pull request #356 from SoftwareEngineeringDaily/feat/709-commen…
marcosschlup Apr 23, 2020
f6054f9
Added models and crud for questions and answers
marcosschlup Apr 23, 2020
34ac1a3
fix(): removed jwt from topic images endpoint
sterlingrules Apr 25, 2020
2da8535
More then one question added at a time
marcosschlup Apr 27, 2020
1705f90
Merge branch 'feat/750-qa-routes' of https://github.com/SoftwareEngin…
marcosschlup Apr 27, 2020
6257d6a
Added sorted answers to question routes. Added answers to question GE…
marcosschlup Apr 27, 2020
79b7b0c
feat(): remove topicpage restriction
sterlingrules Apr 27, 2020
16e0471
Empty topicPages with questions
marcosschlup Apr 28, 2020
3be7a40
Merge branch 'feat/750-qa-routes' of https://github.com/SoftwareEngin…
marcosschlup Apr 28, 2020
edd56d7
Fix error in answers
marcosschlup Apr 28, 2020
5fb182b
chore(): code cleanup
sterlingrules Apr 28, 2020
080b8d6
Merge pull request #357 from SoftwareEngineeringDaily/feat/750-qa-routes
sterlingrules Apr 29, 2020
f7ff286
New route for new User Admin
marcosschlup Apr 29, 2020
2f49b5c
feat(): add answers to profile activity, badges - fixes #756, fixes #757
sterlingrules Apr 29, 2020
ac2e302
chore(): code cleanup
sterlingrules Apr 30, 2020
376814a
chore(): code cleanup
sterlingrules Apr 30, 2020
4a0bb74
Merge pull request #358 from SoftwareEngineeringDaily/feat-profile-to…
sterlingrules Apr 30, 2020
6e8b972
fix(): url typo
sterlingrules Apr 30, 2020
71929fa
Added super admin check
marcosschlup Apr 30, 2020
36f9c65
Merge branch 'master' into feat/759-admin-users
marcosschlup Apr 30, 2020
e778010
Merge pull request #359 from SoftwareEngineeringDaily/feat/759-admin-…
marcosschlup Apr 30, 2020
30fddc5
feat(): add answers to post list route
sterlingrules Apr 30, 2020
2a3418a
Fix topic related episodes from tags to topics
marcosschlup Apr 30, 2020
a2d3604
Create Related Episode in topic
marcosschlup May 1, 2020
50094bb
Merge pull request #360 from SoftwareEngineeringDaily/feat/706-tags
marcosschlup May 1, 2020
b21c2df
Fix random test error in posts all test
marcosschlup May 1, 2020
b7f2eb1
Merge pull request #361 from SoftwareEngineeringDaily/fix/random-in-test
marcosschlup May 1, 2020
17d4df1
feat(): add answers to feed query - fixes #763
sterlingrules May 1, 2020
8c7c88a
merge master
sterlingrules May 1, 2020
192e777
perf(): improve topic fetching during post list
sterlingrules May 2, 2020
0625455
Merge pull request #362 from SoftwareEngineeringDaily/feat/763-main-f…
sterlingrules May 2, 2020
538b745
Fix profile activities related link
marcosschlup May 4, 2020
0a7e646
Merge pull request #363 from SoftwareEngineeringDaily/feat/749-profil…
marcosschlup May 4, 2020
1c0375c
Fix in topicPages images with no fileType in AWS
marcosschlup May 4, 2020
7838662
Merge pull request #364 from SoftwareEngineeringDaily/fix/topic-img-type
marcosschlup May 4, 2020
e63d3d4
feat(): populate posts with related questions, sort questions by answ…
sterlingrules May 4, 2020
48b978f
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 4, 2020
5a413ed
Merge pull request #365 from SoftwareEngineeringDaily/feat-populate-p…
sterlingrules May 5, 2020
b7bdf85
Added Twitter to answer author route. Added fix to profile update twi…
marcosschlup May 5, 2020
1955f8e
Merge pull request #366 from SoftwareEngineeringDaily/feat/784-tweet-…
marcosschlup May 5, 2020
1679621
feat(): add updatedAt key to sort topics
sterlingrules May 5, 2020
543444f
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 5, 2020
1ca3f70
Merge pull request #367 from SoftwareEngineeringDaily/feat/769-sideba…
sterlingrules May 5, 2020
647357a
feat(): support optional content when creating highlight
sterlingrules May 5, 2020
01e4c60
Merge pull request #368 from SoftwareEngineeringDaily/feat/highlight-…
sterlingrules May 6, 2020
a38a4a9
Added new related episodes to Posts
marcosschlup May 6, 2020
be4f89d
Added remove bookmark route
marcosschlup May 7, 2020
3e1c5e1
Merge pull request #369 from SoftwareEngineeringDaily/feat/746-auto-r…
marcosschlup May 7, 2020
e83c0f3
Merge pull request #370 from SoftwareEngineeringDaily/feat/734-bookma…
marcosschlup May 7, 2020
a76a232
New route post topic update
marcosschlup May 8, 2020
7b406bd
Merge pull request #371 from SoftwareEngineeringDaily/feat/779-tagging
marcosschlup May 8, 2020
bde55c9
feat(): add multiple maintainers to model, endpoints, add migration
sterlingrules May 11, 2020
b064b95
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 11, 2020
6b70fdb
fix(): duplicate maintainer emails
sterlingrules May 11, 2020
2c46d3e
update migration
sterlingrules May 11, 2020
002769c
update migration
sterlingrules May 11, 2020
15e9f18
update migration
sterlingrules May 11, 2020
37f18be
chore(): code cleanup
sterlingrules May 11, 2020
df75e48
Create topic changes
marcosschlup May 11, 2020
e839de3
Merge pull request #372 from SoftwareEngineeringDaily/feat/794-suppor…
sterlingrules May 11, 2020
917ee66
Merge branch 'master' into feat/805-add-company-topic
marcosschlup May 11, 2020
34de481
Changed to new param maintainers
marcosschlup May 11, 2020
c47e29a
Merge pull request #373 from SoftwareEngineeringDaily/feat/805-add-co…
marcosschlup May 11, 2020
a010c73
fix(): undefined maintainers
sterlingrules May 12, 2020
5975a7a
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 12, 2020
be0c473
feat(): support indexing topics, answers, on update, migration
sterlingrules May 12, 2020
1103c6b
test(): adjust algolia tests
sterlingrules May 12, 2020
2d73dcc
Changes for user editing of questions
marcosschlup May 13, 2020
40d7734
chore(): update to migration
sterlingrules May 13, 2020
3187038
adjust migrations
sterlingrules May 13, 2020
d48a5c6
chore(): code cleanup
sterlingrules May 13, 2020
f959c86
chore(): remove duplicate db init
sterlingrules May 13, 2020
5467209
Merge pull request #374 from SoftwareEngineeringDaily/feat/699-index-…
sterlingrules May 13, 2020
2da7632
New route user topics
marcosschlup May 13, 2020
5f570bf
Merge pull request #375 from SoftwareEngineeringDaily/feat/topic-page…
marcosschlup May 13, 2020
ea90675
Merge branch 'master' into feat/803-topic-changes
marcosschlup May 13, 2020
9a864e0
Changed question CRUD to author or admin permission
marcosschlup May 14, 2020
a3edeb0
feat(): add related jobs endpoint #802
sterlingrules May 15, 2020
d80bd22
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 15, 2020
a2d5b33
Merge pull request #376 from SoftwareEngineeringDaily/feat/803-topic-…
marcosschlup May 15, 2020
9c27ef5
feat(): return 5 random jobs #802
sterlingrules May 15, 2020
023e5f3
Merge pull request #377 from SoftwareEngineeringDaily/feat/802-relate…
sterlingrules May 15, 2020
bcf28fa
Added topic page changes in profile activities
marcosschlup May 15, 2020
86ca3e9
Merge pull request #378 from SoftwareEngineeringDaily/feat/812-topic-…
marcosschlup May 15, 2020
5005ac2
feat(): add unanswered questions endpoint #797
sterlingrules May 18, 2020
ff090e0
improved error handling
sterlingrules May 18, 2020
2c5ce00
Merge pull request #379 from SoftwareEngineeringDaily/feat/797-unansw…
sterlingrules May 19, 2020
cf13bdc
Added topicPageRevision logic
marcosschlup May 19, 2020
5d3ccfd
Added fix to AdfreeMp3 to accept new secure route
marcosschlup May 19, 2020
2e24c6a
Merge pull request #380 from SoftwareEngineeringDaily/fix/adfree-secure
marcosschlup May 19, 2020
1511860
Created Admin User page with block topic edit setting
marcosschlup May 22, 2020
ad60886
feat(): add new question email, push notification #821
sterlingrules May 22, 2020
6c76362
Merge pull request #381 from SoftwareEngineeringDaily/feat/822-self-m…
marcosschlup May 22, 2020
6d3a816
merge master
sterlingrules May 23, 2020
e57cd94
fix(): self assigning additional maintainer - fixes #835
sterlingrules May 23, 2020
24201b3
Merge pull request #382 from SoftwareEngineeringDaily/feat/821-new-qu…
sterlingrules May 23, 2020
6d30f60
fix(): malformed bearer token
sterlingrules May 24, 2020
4cef7f2
android adjustments
sterlingrules May 24, 2020
feda003
remove answers from mobile
sterlingrules May 24, 2020
34ad204
fix posts array
sterlingrules May 24, 2020
98d5b71
fix header validation
sterlingrules May 24, 2020
edbc00d
chore(): code cleanup
sterlingrules May 24, 2020
5bf5309
Merge pull request #383 from SoftwareEngineeringDaily/fix/841-android
sterlingrules May 24, 2020
7699de2
Changed RSS pubDate format
marcosschlup May 25, 2020
19b5e9f
Merge pull request #384 from SoftwareEngineeringDaily/fix/826-rss-date
marcosschlup May 25, 2020
9626af0
Added twitter to topicPage maintainers showContent
marcosschlup May 25, 2020
d8287e5
Merge pull request #385 from SoftwareEngineeringDaily/feat/842-highli…
marcosschlup May 25, 2020
9395338
Added new RSS route with all episodes
marcosschlup May 25, 2020
652b206
Merge pull request #386 from SoftwareEngineeringDaily/feat/838-rss-all
marcosschlup May 25, 2020
f84ad3c
Fix RSS encoded title
marcosschlup May 26, 2020
839b145
Merge pull request #387 from SoftwareEngineeringDaily/fix/838-rss-encode
marcosschlup May 26, 2020
9de5e72
Fix topics no showing in posts list
marcosschlup May 26, 2020
4721272
Merge pull request #388 from SoftwareEngineeringDaily/fix/845-topics
marcosschlup May 26, 2020
623adda
Added permission for admins to change topic pages
marcosschlup May 27, 2020
e2e9b7c
Merge pull request #389 from SoftwareEngineeringDaily/feat/808-admin-…
marcosschlup May 27, 2020
da33982
feat(): add twitter accounts to topicPages, twitter search
sterlingrules May 27, 2020
a7c941d
Merge branch 'master' of github.com:SoftwareEngineeringDaily/software…
sterlingrules May 27, 2020
da71eb7
Merge pull request #390 from SoftwareEngineeringDaily/feat/851-twitte…
sterlingrules May 28, 2020
f96f658
Changed initial order of questions in topic
marcosschlup May 28, 2020
4d54ca1
Merge pull request #391 from SoftwareEngineeringDaily/feat/799-questi…
marcosschlup May 28, 2020
7838334
feat(): add answer notification, emails #846
sterlingrules May 28, 2020
6936070
feat(): new answer email template
sterlingrules May 28, 2020
c4814b9
Merge pull request #392 from SoftwareEngineeringDaily/feat/846-qa-not…
sterlingrules May 28, 2020
8dccd3f
feat(): add remove maintainer endpoint #849
sterlingrules May 29, 2020
87eef6e
Merge pull request #393 from SoftwareEngineeringDaily/feat/849-remove…
sterlingrules May 29, 2020
93d1c51
Unlimited private RSS
marcosschlup May 29, 2020
e921133
Merge pull request #394 from SoftwareEngineeringDaily/feat/866-rss-pr…
marcosschlup May 29, 2020
71a8a90
feat(): add twitter oauth endpoint #861
sterlingrules Jun 2, 2020
3f2e93c
Merge pull request #395 from SoftwareEngineeringDaily/feat/861-twitte…
sterlingrules Jun 3, 2020
3b88ba1
faet(): add popular posts endpoint
sterlingrules Jun 4, 2020
4b8fa76
feat(): change popular posts to trending
sterlingrules Jun 7, 2020
d7158c9
Merge pull request #396 from SoftwareEngineeringDaily/feat/popular-po…
sterlingrules Jun 8, 2020
af7ad35
feat(): add question ordering endpoint
sterlingrules Jun 9, 2020
c604c5d
Merge pull request #397 from SoftwareEngineeringDaily/feat/800-questi…
sterlingrules Jun 9, 2020
5d181d9
feat(): remove badges from profile request, add twitter username to s…
sterlingrules Jun 12, 2020
5adf6ea
Merge pull request #398 from SoftwareEngineeringDaily/feat/remove-badges
sterlingrules Jun 12, 2020
6972699
remove badges from public profile, add website
sterlingrules Jun 12, 2020
6ac8556
Merge pull request #399 from SoftwareEngineeringDaily/feat/remove-badges
sterlingrules Jun 12, 2020
abbb735
feat(): add twitter, sortby date to topicpage maintainers
sterlingrules Jun 17, 2020
bd3c7b1
Merge pull request #400 from SoftwareEngineeringDaily/feat-maintainer…
sterlingrules Jun 17, 2020
8e6b4f3
feat(): add sentry error handling
sterlingrules Jun 18, 2020
2b5c740
Merge pull request #401 from SoftwareEngineeringDaily/feat-error-hand…
sterlingrules Jun 18, 2020
915ac4a
fix(): sentry config
sterlingrules Jun 19, 2020
3f00af2
test(): fix tests
sterlingrules Jun 19, 2020
00c3535
Merge pull request #402 from SoftwareEngineeringDaily/feat-error-hand…
sterlingrules Jun 19, 2020
45c1a22
chore(): remove admin email from maintainer
sterlingrules Jun 19, 2020
c996459
fix(): xml rss attribute rendering
sterlingrules Jun 23, 2020
e8550a2
Merge pull request #403 from SoftwareEngineeringDaily/fix/rss-syntax
sterlingrules Jun 23, 2020
3702af0
fix(): rss podcast description with cleaned up content - fixes #892
sterlingrules Jul 20, 2020
af53f98
Merge pull request #406 from SoftwareEngineeringDaily/892/fix-rss-pod…
sterlingrules Jul 21, 2020
4fe0007
rever rss changes
sterlingrules Jul 21, 2020
f380bf4
fix(): rss podcast description - fixes #892
sterlingrules Jul 21, 2020
051c9d4
merge master
sterlingrules Jul 21, 2020
821fb03
keep old description for fallback
sterlingrules Jul 21, 2020
ddb86c8
Merge pull request #407 from SoftwareEngineeringDaily/892/fix-rss-pod…
sterlingrules Jul 21, 2020
60dabcc
fix dupe topic search
sterlingrules Aug 11, 2020
2594872
Merge pull request #408 from SoftwareEngineeringDaily/fix-topic-creation
sterlingrules Aug 11, 2020
42794ba
fix(): ad-free podcast urls, create new rss for megaphone migration
sterlingrules Sep 26, 2020
578e64f
Merge pull request #409 from SoftwareEngineeringDaily/fix-ad-free-rss
sterlingrules Sep 26, 2020
37149eb
fix(): megaphone reference
sterlingrules Sep 26, 2020
3c652e8
revert db query
sterlingrules Sep 26, 2020
23ff51f
chore(): code cleanup
sterlingrules Sep 26, 2020
b6afb7a
Merge pull request #410 from SoftwareEngineeringDaily/fix-ad-free-rss
sterlingrules Sep 26, 2020
dc86f5e
feat(): adFreeMp3 handling
sterlingrules Oct 29, 2020
8928b8f
chore(): remove megaphone.json ref
sterlingrules Oct 29, 2020
5692973
chore(): remove megaphone.json ref
sterlingrules Oct 29, 2020
8bbd25b
chore(): remove megaphone.json ref
sterlingrules Oct 29, 2020
8164dad
Merge pull request #411 from SoftwareEngineeringDaily/fix-ad-free-rss
sterlingrules Oct 29, 2020
cb42dbd
support adfreemp3 key
sterlingrules Oct 29, 2020
51c2246
update post model
sterlingrules Oct 29, 2020
262ceb0
perf(): improve high network db query
sterlingrules Nov 23, 2020
b4f0774
add static ip proxy
sterlingrules Jan 1, 2021
605956c
adjust static ip proxy
sterlingrules Jan 1, 2021
f965834
proxy test
sterlingrules Jan 5, 2021
6318822
proxy test 2
sterlingrules Jan 5, 2021
a3b2052
proxy http
sterlingrules Jan 5, 2021
e368104
proxy https
sterlingrules Jan 5, 2021
2bffb3e
proxy middleware
sterlingrules Jan 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .env.docker_example → .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ NODE_ENV=development
PORT=4040
JWT_SECRET=insert-random-secret-string-here

MONGO_HOST=mongodb://mongo/express-mongoose-es6-rest-api-development
MONGO_HOST_TEST=mongodb://mongo/express-mongoose-es6-rest-api-development-test
MONGO_HOST=mongodb://localhost/sedaily
MONGO_HOST_TEST=mongodb://localhost/sedaily-test
MONGO_PORT=27017

RACCOON_REDIS_URL=redis
RACCOON_REDIS_PORT=6379
#RACCOON_REDIS_AUTH=

DEBUG=express-mongoose-es6-rest-api:*

EMAIL_FROM_ADDRESS=no-reply@example.com

FACEBOOK_ID=insert-facebook-app-id-here
FACEBOOK_SECRET=insert-facebook-app-secret-here

AWS_ACCESS_KEY_ID=YOUR_AWS_KEY
AWS_SECRET_ACCESS_KEY=YOUR_AWS_SECRET

AWS_PROFILE_PIC_BUCKET_NAME=bucket-name
AWS_TOPIC_BUCKET_NAME=YOUR_BUCKET_NAME

STRIPE_PUBLIC_KEY=public_key
STRIPE_SECRET_KEY=secret_key


AD_FREE_URL=https://google.com/

SEND_GRID_KEY=send_grid_key

EVENTS_API_BASE_URL=http://localhost:3000/api/v1/

MAILCHIMP_KEY=mailchimp_key
MAILCHIMP_LIST_ID=mailchimp_list_id
MAILCHIMP_LIST_ID=mailchimp_list_id

# These are public testing keys - https://developers.google.com/recaptcha/docs/faq
RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
RECAPTCHA_SECRET_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
33 changes: 0 additions & 33 deletions .env.local_example

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
],
"no-underscore-dangle": [
0
]
],
"arrow-body-style":"off"
},
"env": {
"node": true,
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,12 @@ node_modules
*.swp
*.swo

# Database Migrations
.migrate

# Redis Database File
*.rdb

# CI builds
devops/dump
.vscode/settings.json
25 changes: 18 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
language: node_js
node_js:
- "6.11"
- "10.19.0"
sudo: required
services:
- mongodb
- redis-server
- docker
cache:
directories:
- node_modules
git:
depth: 3
script:
# - yarn test:check-coverage
- npm run test
after_script:
# - yarn report-coverage
stages:
- test
- name: docker
if: branch = master AND type = push
jobs:
include:
- stage: test
script:
- npm run lint
- npm run test
- npm run build
- stage: docker
script:
- ./devops/build-api.sh
- cd devops; ./build-mongodb.sh
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# take default image of node boron i.e node 6.x
FROM node:6.10.1
FROM node:10.19.0

MAINTAINER Kunal Kapadia <kunalkapadia12@gmail.com>

Expand Down
61 changes: 40 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
[![logo](https://i.imgur.com/3OtP3p8.png)](https://softwareengineeringdaily.com/)

[![Build Status](https://travis-ci.org/SoftwareEngineeringDaily/software-engineering-daily-api.svg?branch=travis-fix)](https://travis-ci.org/SoftwareEngineeringDaily/software-engineering-daily-api)

# SEDaily-API

The backend services and API for the Software Engineering Daily [Android](https://github.com/SoftwareEngineeringDaily/SEDaily-Android), [iOS](https://github.com/SoftwareEngineeringDaily/se-daily-iOS), and [web front end](https://github.com/SoftwareEngineeringDaily/sedaily-front-end).

## Set up (local)
### *[More details here...](https://softwareengineeringdaily.github.io/Backend/gettingstarted/)
- Install and run a local redis client
- Install and run a local mongo client
- `cp .env.local_example .env`
- `npm install` or `yarn install`
- `npm start` or `yarn start`
- check package.json for other builds
- use curl or Postman to make requests
- view swagger api docs at HOST/api/docs

## Using Docker
- `cp .env.docker_example .env`
- Run `docker-compose up`
- If dependencies are updated in package.json, run `docker-compose down` and then `docker-compose up --build`. This will remove the old container and rebuild the API image which installs the new dependencies.
[![Build Status](https://travis-ci.org/SoftwareEngineeringDaily/software-engineering-daily-api.svg?branch=master)](https://travis-ci.org/SoftwareEngineeringDaily/software-engineering-daily-api)

# Software Engineering Daily API

The backend services and API for the Software Engineering Daily [Android](https://github.com/SoftwareEngineeringDaily/SEDaily-Android), [iOS](https://github.com/SoftwareEngineeringDaily/se-daily-iOS), and [front end](https://github.com/SoftwareEngineeringDaily/sedaily-front-end) clients.

### Getting Started

The [Software Daily](https://www.softwaredaily.com) API uses MongoDB as the data store. You'll need MongoDB running locally. This requires an OS-specific install of [Docker](https://docs.docker.com/install/) and [Docker Compose](https://docs.docker.com/compose/install/#prerequisites). During the CI process for the the API, the MongoDB image data is seeded from the [staging environment](https://sedaily-frontend-staging.herokuapp.com).

```
# clone the project
git clone https://github.com/SoftwareEngineeringDaily/software-engineering-daily-api.git
cd software-engineering-daily-api/

# setup environment variables
cp .env.example .env

# run mondodb container
docker-compose up -d

# install dependencies
npm install

# serve with hot reload at localhost:4040
npm start

# test api
curl localhost:4040/api/posts
```

View the swagger api docs at http://localhost:4040/api/docs

### Contributing

Fork the repository and create a branch off of `master`. When your feature is ready, submit a pull request for the `master` branch. Be sure to include a short description of the feature or pull request and reference any related issues. The project is hosted on Heroku so if you would like a review app created just request it in the PR.

After the Travis-CI tests are successful and your pull request is approved, an admin will merge the PR. Any commits merged to `master` are deployed to the front end [staging environment](https://sedaily-frontend-staging.herokuapp.com). Once everything looks good an admin will promote staging to production and your feature will be live!

We have an active Slack community that you can reach out to for more information or just to chat with anyone. Check out the [<img src="https://upload.wikimedia.org/wikipedia/commons/7/76/Slack_Icon.png" alt="Slack Channel" width="20px"/> SED app development](https://softwaredaily.slack.com/app_redirect?channel=sed_app_development) slack channel. Also see the [Open Source Guide](https://softwareengineeringdaily.github.io/).
43 changes: 43 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,51 @@
{
"name": "software-engineering-daily-api",
"stack": "heroku-18",
"scripts": {
},
"env": {
"JWT_SECRET": {
"required": true
},
"MONGO_HOST": {
"required": true
},
"MONGO_HOST_TEST": {
"required": true
},
"AWS_ACCESS_KEY_ID": {
"required": true
},
"AWS_SECRET_ACCESS_KEY": {
"required": true
},
"AWS_PROFILE_PIC_BUCKET_NAME": {
"required": true
},
"STRIPE_PUBLIC_KEY": {
"required": true
},
"STRIPE_SECRET_KEY": {
"required": true
},
"SEND_GRID_KEY": {
"required": true
},
"MAILCHIMP_KEY": {
"required": true
},
"MAILCHIMP_LIST_ID": {
"required": true
},
"RECAPTCHA_SITE_KEY": {
"required": true
},
"RECAPTCHA_SECRET_KEY": {
"required": true
},
"EMAIL_FROM_ADDRESS": {
"required": true
}
},
"formation": {
},
Expand Down
5 changes: 0 additions & 5 deletions bin/development.sh

This file was deleted.

6 changes: 0 additions & 6 deletions bin/test.sh

This file was deleted.

47 changes: 31 additions & 16 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const envVarsSchema = Joi.object({
.allow(['development', 'production', 'test', 'provision'])
.default('development'),
BASE_URL: Joi.string()
// .allow(['https://www.softwaredaily.com', 'http://localhost:4040'])
.default('https://www.softwaredaily.com'),
EVENTS_API_BASE_URL: Joi.string().required(),
SEND_GRID_KEY: Joi.string().required(),
PORT: Joi.number()
.default(4040),
Expand All @@ -23,22 +21,26 @@ const envVarsSchema = Joi.object({
}),
JWT_SECRET: Joi.string().required()
.description('JWT Secret required to sign'),
AD_FREE_URL: Joi.string().required()
.description('URL for ad free podcasts'),
MONGO_HOST: Joi.string().required()
.description('Mongo DB host url'),
MONGO_HOST_TEST: Joi.string()
.description('Mongo DB test host url'),
MONGO_PORT: Joi.number()
.default(27017),
FACEBOOK_ID: Joi.string().required()
.description('Facbook application id'),
FACEBOOK_SECRET: Joi.string().required()
.description('Facebook application secret'),
MONGO_COLLECTION_PREFIX: Joi.string().default('')
.description('Prefix used in all collection names'),
MAILCHIMP_KEY: Joi.string().required()
.description('Mailchimp API key'),
MAILCHIMP_LIST_ID: Joi.string().required()
.description('Mailchimp list id')
.description('Mailchimp list id'),
RECAPTCHA_SITE_KEY: Joi.string().required()
.description('Recaptcha site key'),
RECAPTCHA_SECRET_KEY: Joi.string().required()
.description('Recaptcha secret key'),
AWS_PROFILE_PIC_BUCKET_NAME: Joi.string().required()
.description('S3 bucket for storing profile pictures'),
EMAIL_FROM_ADDRESS: Joi.string().required()
.description('Email address listed in FROM section of emails')
}).unknown()
.required();

Expand All @@ -51,23 +53,36 @@ const config = {
env: envVars.NODE_ENV,
port: envVars.PORT,
baseUrl: envVars.BASE_URL,
serverUrl: envVars.SERVER_URL,
sendGridKey: envVars.SEND_GRID_KEY,
mongooseDebug: envVars.MONGOOSE_DEBUG,
adFreeURL: envVars.AD_FREE_URL,
jwtSecret: envVars.JWT_SECRET,
eventStreamUrl: envVars.EVENTS_API_BASE_URL,
mongo: {
host: envVars.MONGO_HOST,
test: envVars.MONGO_HOST_TEST,
port: envVars.MONGO_PORT
},
facebook: {
clientID: envVars.FACEBOOK_ID,
clientSecret: envVars.FACEBOOK_SECRET
port: envVars.MONGO_PORT,
collectionPrefix: envVars.MONGO_COLLECTION_PREFIX ? `${envVars.MONGO_COLLECTION_PREFIX}-` : ''
},
mailchimp: {
mailchimpKey: envVars.MAILCHIMP_KEY,
mailchimpList: envVars.MAILCHIMP_LIST_ID
},
recaptcha: {
siteKey: envVars.RECAPTCHA_SITE_KEY,
secretKey: envVars.RECAPTCHA_SECRET_KEY
},
aws: {
profilePicBucketName: envVars.AWS_PROFILE_PIC_BUCKET_NAME,
topicBucketName: envVars.AWS_TOPIC_BUCKET_NAME,
},
email: {
fromAddress: envVars.EMAIL_FROM_ADDRESS
},
cron: {
RSS: {
time: '0 15 9,10,11,12,14,16,19,21 * * *',
timeZone: null
}
}
};

Expand Down
Loading