learn-javascript-courses / rejection Goto Github PK
View Code? Open in Web Editor NEWYou gotta lose to win. A portfolio project to highlight React skills.
License: MIT License
You gotta lose to win. A portfolio project to highlight React skills.
License: MIT License
Frontend: https://github.com/mkeeneth/rejection
backend: https://github.com/mkeeneth/rejection-server
Deployed: https://rejection.netlify.com/
Thanks Again!
https://github.com/askeroff/rejection
https://askeroff.github.io/rejection/
I am not really comfortable with the result. I used TDD for the first time and I'm not sure how correct it is. At some point, I thought, I should've used React or something. Maybe if I'll decide to go on and advance this app, I will.
For now, will appreciate any feedback.
here's a working implementation.. it's not too pretty, and it uses localStorage.
obviously this thing didn't need Redux, but I have to use a thing to really learn it.. and I'm learning Redux.
In case the UI isn't clear.. you can click the questions to change the "response"
Code: https://github.com/mkeeneth/rejection
Deployed: https://rejection.herokuapp.com/
Thanks!
Hey, @ericelliott, thanks for creating this rejection challenge :)
I had a lot of fun with my first iteration of this project and can't wait to hear your advice on how I can improve it.
Source code: https://github.com/indiesquidge/rejection/tree/basic-level
Production site: http://austinwood.me/rejection/
Code: https://github.com/thoragio/rejection
Demo: https://thoragio.github.io/rejection/
I enjoyed working on this project. What really stumped me though was what to write tests for. I had a nice boilerplate for testing all ready to go, but in the end I built it and never could see the path for TDD during it. :-(
Basic Level: https://github.com/PennTx/rejection
Code: https://github.com/thoragio/rejection2
Demo: https://rejection2-uozqvyieal.now.sh/
Working with Next.js and learning React along the way was already quite a challenge, so I did not create any unit tests for this one. Will do that in the next project.
Thanks for the suggestion to try out Next.js. I enjoyed working with it, and with React as well.
Hi Eric,
Here is my interpretation of the challenge Rejection Game challange.
https://github.com/ddaawwiidd/rejection
Any advices for rookie coder?
Cheers
Dawid
https://rejection-torwzprasl.now.sh
https://github.com/ryanbas21/rejection
updated links. loads data on login ๐
https://github.com/warrenv/rejection
This is live at: http://rejection.straydog.to/
Hi @ericelliott,
Here it is a link to my fork
And the deployed version
The app:
Tape
for unit testing along with Cheerio
Asks
data in localStorageRedux
, uses Selectors
and Sagas
for effects.Next
and Now
for deploymentstyled-jsx
Rejection App is currently live at this github pages link. GitHub Repo.
Also, here is a screenshot of the Lighthouse Performance test was run before creating this issue.
Here is the link to the app.
https://github.com/janhesters/rejection-game
It's a private repo, but I invited you both as collaborators.
Also, if you happen to download the repo, you can search for NOTE
s in the code. I used NOTE
every time I wasn't sure / had a question ๐
Things that could be improved (from the top of my head):
Things I'm working on:
Finish basic level using Next.js + React + Redux with TDD.
Colocate constants, action creators, and selectors with reducer.
Duck pattern say that MUST have action types in the form npm-module-or-app/reducer/ACTION_TYPE
But I notice you use const ADD_CHAT = 'CHAT::ADD_CHAT'
Which pattern should I follow?
describe
come from?describe('chatReducer()', ({ test }) => {
test('with no arguments', ({ same, end }) => {
const msg = 'should return correct default state';
const actual = reducer();
const expected = createState();
same(actual, expected, msg);
end();
});
});
componentDidMount() {
const { dispatch } = this.props;
const serializedState = localStorage.getItem('rejection/state');
const state = JSON.parse(serializedState) || {};
if (state.asks) state.asks.map(ask => dispatch(addAsk(ask)));
}
Code: https://github.com/sayansiva/rejection-app
Deployed: rejection-app-six.vercel.app
Finish Mid Level Challenge
site: https://rejection.manos.now.sh/
repo: https://github.com/mfountoulakis/rejection
This was a great exercise! You left a trail of easter eggs leading right to some really nice tips about testing the redux store.
I could have submitted this exercise a lot earlier if I hadn't run into issues with testing. Specifically, unit testing connected components. The short answer is: I don't know what I'm doing.
mapStateToProps seems to be clashing with the simulated state that I'm attempting to pass to my components as props. I suspect that there's an easy solution that I'm missing here, but I will continue to write tests in other areas in the meantime, along with general refactoring.
As always, questions/comments are welcome!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.