投稿時間:2023-07-16 22:07:37 RSSフィード2023-07-16 22:00 分まとめ(9件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
Docker dockerタグが付けられた新着投稿 - Qiita Rails7(esbuild + Tailwind + MySQL)をDocker Composeで環境構築する https://qiita.com/ryouzi/items/fa6a1b1f16c61b40c039 dockercompose 2023-07-16 21:48:56
Ruby Railsタグが付けられた新着投稿 - Qiita Rails7(esbuild + Tailwind + MySQL)をDocker Composeで環境構築する https://qiita.com/ryouzi/items/fa6a1b1f16c61b40c039 dockercompose 2023-07-16 21:48:56
海外TECH DEV Community ReasonReact, Auth0 and 3rd Party React Components https://dev.to/psb/reasonreact-auth0-and-3rd-party-react-components-31kp ReasonReact Auth and rd Party React ComponentsOne of the ways I like to test a technology is to try and implement something that could be required in a real world app and authentication is one of those things I have also been wanting to see how easy it is to use a third party JS React component with ReasonReact So to kill two birds with one stone I created a simple app that uses the Auth React component You can view the app here and the code is here Using the AuthProvider componentThe login for the app is based on the Auth quick start tutorial for React and the first thing we have to do is wrap our App in the AuthProvider In JavaScript we would do import AuthProvider from auth auth react and wrap our App component with the imported AuthProvider component but in ReasonReact we need to write some bindings to the component using Melange attributes module AuthProvider type auth param redirect uri string bs module auth auth react react component external make domain string clientId string authorizationParams auth param children React element gt React element AuthProvider bs module is a Melange attribute that lets us bind to a value from a JS module The AuthProvider at the end is the JavaScript name of the value component we are binding to The external before the make is used for JS interop FFI and is like an FFI let binding Everything else in between is the type signature of a React component in ReasonReact In Reason each file is a module and it is common to have one ReasonReact component per file with the filename being the name of the component We can also define modules within files which is what we have done for the AuthProvider in the snippet above and we use the component like so lt AuthProvider domain dev djpygvjwvaxjde us auth com clientId emvqWBovjSBWclTFdAIXgbyyKgv authorizationParams redirect uri origin profile gt lt App gt lt AuthProvider gt Using the useAuth hookNow that we have wrapped our App with the AuthProvider we can start using the useAuth hook in our components and to do so we must write some bindings to the hook Because in JavaScript we would import the hook we again have to use the bs module attribute to bind to it type hook bs module auth auth react external useAuth unit gt hook useAuth Here we are telling Reason that we are binding to an external something in the module auth auth react and that something is called useAuth in JS land we are binding useAuth to the name useAuth in Reason land and useAuth takes a unit i e takes no arguments equivalent to useAuth in JS and returns a hook We have to give the return value a type type hook so that the type system knows what we have just imported bound to and which we need when we want to bind to the values and methods of the hook You don t have to use the same JS name in Reason for a binding For example you could do something like bs module auth auth react external useAuthReason unit gt hook useAuth You would then just use useAuthReason in your ReasonReact code In fact you may need to rename bindings if they clash with reserved key words in Reason The useAuth hook provides various state values and methods and to use them we need more bindings To call a method we use the bs send attribute bs send external loginWithRedirect hook gt unit loginWithRedirect To get a value we use the bs get attribute type user bs get external user hook gt user user Once defined we can use the bindings in our ReasonReact components LoginButton re react component let make gt let ua Bindings Auth useAuth lt button className py px rounded md bg blue text white onClick gt Bindings Auth loginWithRedirect ua gt React string Log In lt button gt And the very readable output JavaScript of the LoginButton ReasonReact component Generated by Melangeimport as React from react import as AuthReact from auth auth react function LoginButton Props var ua AuthReact useAuth return React createElement button className py px rounded md bg blue text white onClick function param ua loginWithRedirect Log In var make LoginButton export make react Not a pure module Bindings can be written as they are needed and once written completing the Auth quick start guide is pretty straight forward ConclusionThird party JS React components can be successfully used in any ReasonReact project Bindings may look complicated but once you ve written a couple of them you quickly get the hang of it Cover image by Miguel Á Padriñán from Pexels 2023-07-16 12:17:56
海外TECH DEV Community This can be your next project https://dev.to/shreyvijayvargiya/this-can-be-your-next-project-9bj This can be your next projectDevelop it share it get the next job and thank me later Under the HoodI won t say much but did you read my last LinkedIn post LinkedIn post on learn programmingNow the point is simple I ve told multiple times to a lot of developers how to grab your job how to learn programming how to become a top notch developer and bla blaThe question is simple do we need to learn DSA do we need to master some top Udemy courses or do we need to make a resume from Chat GPT to stand out Write a Program to Learn ProgrammingIt s not rocket science anymore we need to write programs to learn programming We need to develop projects to become good developers or even experienced Experience developers are not experienced because of age but because they have extensive experience in developing a variety of projects Or Experienced developers are the ones who have mastery of developing one thing at a time but almost to the level of perfectionism So you have no other options left even if Chat GPT arrives in the next few years developers still have to write programs to become good developers Small Project to StartSo since we have to understand what to do so now is the time to know where to start I am giving one project idea the real world website project this is a full stack project so the choice is yours on which tech stack you want to choose Google Pay Expense ManagerIn India of transactions are done via online payment called UPI mostly by the middle class and above class people It s not available in other countries yet but India is way ahead and other countries like France and Japan are copying the same model Online transactions are easy and effective and less prone to errors Now since most of the transactions are online managing expenses can be made easy for people The project is to develop Online google pay expense managerThe user will be logged in via the phone number on the website to connect to google payUsers can see the last or or months transactions The website should categorise the transactions enabling easy to understand for the user about all of his her expensesMore filter options along with real time charts for better analysis can be given Simple yet effective projects try to make it as good looking as possible My advice is to use the simple black and white combination to make it appealing Refer to this for the sample designSample design Plan of ActionWe need Google API to fetch the user transactionsWe need API to allow user to logged in using the phone number via OTPWe need a frontend interface including charts a list of the last transactions and so on Tech StackChoose the stack of your choice it doesn t matter initially at all Just make sure you can easily host the project to add them to your resume and showcase them to the people just using the link Tech stack I will chooseGoogle Pay APIFirebase for phone authenticationReact in frontendNext js react frameworkNode JS for backend APIMongoDB as the databaseVercel for hostingTailwind CSS for stylingTwilio as SMS sending APIGitHub for version controlFeel free to do whatever you want to do as it doesn t matter much about the stack ConclusionDevelop the project using your fav language and tech stackCreate a frontend interface to log in using a phone number via OTPCreate API or method to send OTP and allow logged inFetch the user s phone number transactions using google pay API Show cool charts and a list of all the transactions Open source the project on GitHub and share it on social mediaDeploy the project on the sample URL and add the link on the resumeIn this way your first project is ready to add to the resume so do give it a try and lemme know if you face any problems Keep developingShreyiHateReading 2023-07-16 12:14:28
Apple AppleInsider - Frontpage News Rumor: Apple may introduce iPhone 15 in pink https://appleinsider.com/articles/23/07/16/apple-may-introduce-pink-iphone-15-says-new-color-leak?utm_medium=rss Rumor Apple may introduce iPhone in pinkThe iPhone could be offered in more new colors than previously thought with a leak claiming the lineup could include a pink option for iPhone and iPhone PlusAs the September launch of the iPhone gets closer rumors about the color choices of Apple are becoming more frequent In the latest leak it is proposed that there could be a bunch of colors available for the non Pro models Read more 2023-07-16 12:37:24
海外科学 NYT > Science As Climate Shocks Multiply, Designers Seek Holy Grail: Disaster-Proof Homes https://www.nytimes.com/2023/07/16/climate/climate-geodesic-dome-house.html As Climate Shocks Multiply Designers Seek Holy Grail Disaster Proof HomesThe homebuilding industry has been slow to adopt changes that can better protect against extreme weather Some architects are showing what s possible 2023-07-16 12:09:57
ニュース BBC News - Home Singer and actress Jane Birkin dead at 76 https://www.bbc.co.uk/news/entertainment-arts-66216417?at_medium=RSS&at_campaign=KARANGA media 2023-07-16 12:53:41
ニュース BBC News - Home Huw Edwards: How Sun story about BBC presenter developed https://www.bbc.co.uk/news/entertainment-arts-66186358?at_medium=RSS&at_campaign=KARANGA interest 2023-07-16 12:26:39
ニュース BBC News - Home Investigation into former Tory MP David Warburton closed https://www.bbc.co.uk/news/uk-england-somerset-66215351?at_medium=RSS&at_campaign=KARANGA misconduct 2023-07-16 12:02:34

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)