100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary How not to connect with a database (ReactJS)

Beoordeling
-
Verkocht
-
Pagina's
1
Geüpload op
22-02-2023
Geschreven in
2021/2022

In this document, I have described how not to connect with a database from inside a React App.

Instelling
Vak








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Vak

Documentinformatie

Geüpload op
22 februari 2023
Aantal pagina's
1
Geschreven in
2021/2022
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

SENDING HTTP REQUESTS (CONNECTING TO A DATABASE)
How not to connect with a database:
 Do not write code to connect with a database in your React App. This is because the
corresponding code is visible in the browser (under Sources tab in the developer
tools), and anyone can steal your database credentials from there.
 Instead, the code to connect with a database is written on another backend app that
is placed (or deployed) on another server and it receives http requests from the
React App to then return the corresponding response to it.
 Type script code is also compiled to JavaScript code which is then understood by the
browser
 You should never add confidential information such as passwords, usernames,
email-addresses, database queries and database credentials into your frontend
code.
 You can however add API keys as long as you want people to access them publicly. If
you do not want people to access them publicly, then you’ll have to restrict access to
your API using some mechanism, e.g. IP whitelisting or some other logic.
 You cannot hide your front-end logic from users but that also might not be a big
problem as the production code is minified and hard to read; this is because the
variable names are shortened and there are no whitespaces too. Also, most of the
core business logic is usually present on the server side.
$20.49
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
hafsasaleem224

Maak kennis met de verkoper

Seller avatar
hafsasaleem224 Academind
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
2 jaar
Aantal volgers
0
Documenten
2
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen