Modern Full-Stack Development


A Bit of Configuration: config.ts



Download 5,64 Mb.
Pdf ko'rish
bet54/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   50   51   52   53   54   55   56   57   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 A Bit of Configuration: config.ts
For the client app to talk to the server, it, of course, has to know its address. The config.ts 
file meets that need:
export const config: {
  serverAddress: string, userEmail: string } =
{ serverAddress : "http://localhost", userEmail : user@human.com };
It’s quite simple: it’s just a literal object with a serverAddress property that gives the 
address of the MailBag server. During development, this is likely to be localhost. Also, 
note that it must contain the protocol prefix. This object also contains the userEmail that 
provides your eMail address. I’m gonna guess that’s not your email address, so go ahead 
and update it as appropriate! This file will be imported into the Worker classes as needed.
Hey, speaking of Worker classes, that’s exactly what’s up next!

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   50   51   52   53   54   55   56   57   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish