package.json
{ "name": "node-api", "main": "server.js", "dependencies": { "express": "~4.0.0", "body-parser": "~1.0.1", "mysql": "*", "sequelize": "*", "crypto": "*" } }
user.js
var users = [ { "id": "1", "name": "Mark Brown", "age": 27 }, { "id": "2", "name": "Tim Gray", "age": 29 }, { "id": "3", "name": "Mark Blue", "age": 27 } ]; exports.getAllUsers = function() { return users; }; exports.getUserById = function(id) { for (var i = 0; i < users.length; i++) { if (users[i].id == id) return users[i]; } };
server.js
var express = require('express'); var users = require('./user'); var app = express(); var port = process.env.PORT || 8080; var router = express.Router(); router.use(function(req, res, next) { console.log('%s %s', req.method, req.path); next(); }); router.get('/users', function(req, res, next) { res.json({ users: users.getAllUsers() }); }); router.get('/users/:id', function(req, res, next) { var user = users.getUserById(req.params.id) res.json(user); }); // Only requests to /api/ will be send to router. app.use('/api', router); app.listen(port); console.log('Server listening on port ' + port);
Çalıştırmak için;
* Bilgisayarınızda node.js kurulu olduğunu varsayıyorum.
Windows
Komut satırını açıp, projenin olduğu dizine gidiyor ve şu komutları sırasıyla çalıştırıyoruz:
npm install node server.js
Linux
Terminalde projenin olduğu dizine gidiyor ve şu komutları sırasıyla çalıştırıyoruz:
sudo npm install sudo node server.js
Hazırladığınız RestApi’yi kullanmak için;
- Tüm Kullanıcıları Listele: http://localhost:8080/api/users/
- UserId’si X Olan Kullanıcıyı Listele: http://localhost:8080/api/users/1
order tricor pill order fenofibrate 200mg pill buy generic fenofibrate 160mg
order fenofibrate tricor pills buy tricor without a prescription
cheap tadalafil 40mg viagra online order viagra 50mg
buy zaditor 1 mg online cheap geodon 40mg without prescription imipramine ca
cialis 10mg canada sildenafil canada order viagra 100mg pills
buy cheap generic precose buy micronase sale buy griseofulvin generic
purchase minoxidil generic minoxytop over the counter buy ed pills uk
acarbose 50mg cost pill fulvicin order generic griseofulvin
purchase minoxidil solution minoxidil cost buy generic ed pills online
aspirin 75 mg canada aspirin where to buy buy cheap generic imiquimod
purchase dipyridamole pill pravastatin without prescription pravachol drug
buy aspirin 75mg generic levoflox pills zovirax brand
dipyridamole 100mg brand buy felodipine 10mg pills generic pravastatin 20mg
buy generic melatonin online order norethindrone 5 mg online cheap danocrine 100 mg cheap
pill melatonin 3 mg aygestin 5mg over the counter danocrine without prescription
fludrocortisone sale buy bisacodyl 5 mg sale loperamide canada
dydrogesterone 10 mg tablet order duphaston 10 mg sale jardiance 25mg drug
florinef 100 mcg pill order fludrocortisone 100 mcg generic order imodium 2mg sale
purchase dydrogesterone online buy jardiance 10mg pills jardiance 10mg sale
etodolac over the counter colospa cost buy generic cilostazol
prasugrel sale detrol 2mg uk tolterodine over the counter
prasugrel 10mg ca prasugrel 10mg pill buy generic tolterodine 2mg
buy etodolac 600 mg cilostazol 100mg without prescription purchase cilostazol without prescription
ferrous 100mg cost cost sotalol order sotalol 40mg without prescription
order ferrous 100 mg online cheap order ferrous sulfate 100 mg sale where to buy sotalol without a prescription
purchase pyridostigmine generic buy pyridostigmine online buy maxalt 10mg generic
order vasotec 5mg without prescription how to get enalapril without a prescription generic duphalac
cost pyridostigmine order pyridostigmine 60mg online maxalt 5mg ca
order vasotec 5mg sale order doxazosin 1mg pills buy generic duphalac
where to buy zovirax without a prescription order xeloda 500 mg online exelon 6mg cheap
buy generic betahistine oral probenecid 500mg probenecid 500mg sale
purchase betahistine generic order betahistine sale order benemid 500 mg online
generic zovirax capecitabine sale exelon for sale online
buy prilosec sale order lopressor 50mg generic metoprolol usa
buy generic premarin online order viagra 100mg real viagra
purchase omeprazole sale prilosec 10mg cost buy lopressor pills for sale
oral premarin cheap premarin 0.625mg buy sildenafil 100mg sale
cost micardis 20mg order micardis 20mg generic purchase molnunat for sale
order micardis generic buy plaquenil 400mg pill molnunat cheap
where to buy cialis tadalafil women viagra sildenafil 50mg
order cenforce 50mg pill cenforce cost buy generic aralen
tadalafil tablet buy viagra for sale viagra 100 mg
cefdinir 300 mg ca purchase lansoprazole sale buy cheap generic lansoprazole
buy modafinil 100mg generic prednisone 5mg brand cheap prednisone 5mg
omnicef 300 mg oral omnicef 300mg price how to get lansoprazole without a prescription
cost modafinil 100mg buy promethazine 25mg pill buy prednisone 10mg
isotretinoin canada order isotretinoin online cheap order zithromax 250mg pills
buy lipitor 10mg generic norvasc sale buy norvasc 10mg without prescription
order absorica sale buy amoxil 500mg generic azithromycin 250mg without prescription
buy lipitor 20mg sale buy proventil 100mcg without prescription amlodipine without prescription
azithromycin cost cheap prednisolone online order gabapentin 800mg generic
azipro generic buy azipro medication neurontin 800mg drug
protonix 40mg cost lisinopril 2.5mg sale where to buy phenazopyridine without a prescription
slots games purchase furosemide pills buy lasix pills for sale
pantoprazole where to buy protonix price order pyridium 200mg
online casinos for real money order generic lasix 40mg buy furosemide 40mg pill
poker online for money purchase vibra-tabs generic albuterol usa
empire casino online albuterol drug purchase albuterol pill
buy amantadine online amantadine 100 mg ca purchase avlosulfon pills
slot games stromectol pills stromectol 3mg
amantadine 100mg generic buy dapsone no prescription dapsone online order
free spins no deposit uk slot games online free buy stromectol uk
where can i play poker online buy synthroid 150mcg without prescription synthroid 150mcg without prescription
buy methylprednisolone generic buy cheap generic aristocort triamcinolone 4mg cost
vegas casino online augmentin 375mg pills order synthroid 100mcg online cheap
clomid pill order imdur 40mg online cheap imuran 50mg cost
buy generic medrol purchase methylprednisolone order aristocort 4mg online
purchase clomid online imdur 20mg over the counter order azathioprine generic
oral vardenafil order levitra 20mg online cheap order generic tizanidine 2mg
order aceon 4mg without prescription clarinex medication fexofenadine drug
buy vardenafil for sale levitra 10mg brand buy tizanidine pills for sale
aceon 4mg sale buy coversum pill buy fexofenadine 180mg pill
cheap dilantin phenytoin 100 mg uk oxytrol price
order phenytoin 100 mg sale buy ditropan 5mg for sale buy oxytrol without prescription
order claritin without prescription loratadine oral dapoxetine 30mg generic
buy cheap baclofen baclofen buy online toradol 10mg uk
buy generic claritin 10mg loratadine us purchase dapoxetine generic
oral baclofen baclofen order toradol 10mg for sale
oral baclofen 10mg buy baclofen pills buy toradol 10mg pills
buy glimepiride 1mg without prescription buy arcoxia 120mg for sale buy etoricoxib
baclofen us buy toradol 10mg online where to buy ketorolac without a prescription
purchase glimepiride order amaryl purchase arcoxia pills
alendronate usa buy cheap macrodantin nitrofurantoin usa
fosamax 70mg ca colchicine cheap buy macrodantin 100mg online
inderal online buy motrin 400mg for sale clopidogrel for sale
oral inderal inderal for sale buy clopidogrel 75mg online cheap
pamelor online buy generic methotrexate buy acetaminophen pill
nortriptyline over the counter panadol 500 mg oral oral anacin
xenical without prescription how to buy diltiazem diltiazem online order
buy warfarin paypal buy warfarin generic maxolon medication
xenical 120mg tablet order orlistat 120mg pill order diltiazem 180mg pills
medex over the counter coumadin for sale buy generic reglan 10mg
order azelastine generic where can i buy acyclovir order irbesartan pills
buy pepcid 20mg without prescription order pepcid 20mg pills generic tacrolimus
astelin 10 ml drug irbesartan pills generic avapro
buy famotidine 20mg online order famotidine 40mg pills buy tacrolimus 5mg online
buy generic esomeprazole online remeron 15mg tablet buy topiramate generic
purchase nexium generic order topiramate 100mg for sale buy topiramate 100mg online
buy allopurinol 300mg pill clobetasol cream order generic rosuvastatin 10mg
buy zyloprim pills rosuvastatin 10mg drug crestor generic
imitrex 50mg ca levofloxacin 250mg drug order dutasteride pill
imitrex online buy levofloxacin without prescription purchase avodart generic
brand buspar 10mg amiodarone 200mg cost order cordarone 100mg sale
ranitidine cheap celebrex 100mg usa cost celebrex 100mg
where can i buy motilium purchase sumycin sale tetracycline 500mg tablet
motilium 10mg ca sumycin 250mg cheap buy sumycin medication
buy tamsulosin sale purchase zocor sale purchase zocor generic
buy tamsulosin 0.2mg online tamsulosin 0.2mg pill buy simvastatin 10mg pill
term papers for sale cheap essay writing best website for writing essays
buy aldactone pills buy aldactone proscar 5mg pill
essays help my favorite writer essay term paper service
buy spironolactone 25mg without prescription buy spironolactone online cheap order propecia 5mg pills
aurogra 100mg over the counter how to buy sildalis yasmin us
order fluconazole 200mg online cheap cipro 500mg us order baycip
sildenafil 50mg price buy aurogra 100mg generic estradiol 1mg usa
buy cheap generic forcan ampicillin 250mg sale ciprofloxacin 500mg price
order lamotrigine order prazosin 2mg without prescription order mebendazole 100mg online cheap
order metronidazole online bactrim 480mg ca generic keflex
lamictal 50mg price order lamotrigine 200mg online cheap vermox oral
buy flagyl 200mg generic buy generic flagyl over the counter buy keflex cheap
cleocin generic clindamycin brand buy erection pills
order tretinoin gel generic buy cheap generic retin buy avana 200mg for sale
tretinoin tablet stendra sale cheap avana 200mg
cleocin 150mg oral order generic erythromycin 500mg purchase sildenafil pill
oral tamoxifen 10mg generic budesonide symbicort ca
order tadalafil 10mg sale buy voltaren online cheap order indomethacin
cheap tadacip 10mg cambia price order indomethacin 50mg pill
buy tamoxifen tablets betahistine 16 mg sale symbicort oral
buy cefuroxime pills buy generic robaxin 500mg robaxin 500mg canada
cheap lamisil casino online gambling online casino real money usa
order cefuroxime pill buy cefuroxime 250mg pill methocarbamol 500mg us
buy desyrel 100mg generic cheap clindamycin order clindac a sale
lamisil usa gambling site best online gambling
order desyrel 100mg online cheap suhagra without prescription order clindac a online
order aspirin 75 mg pill aspirin 75 mg price casino money
pay for essay writing uk buy cefixime 100mg buy cefixime generic
buy aspirin 75mg generic slots meaning golden nugget online casino
essays writing writing lab buy generic suprax online
help writing papers for college slot game quick hits free online slots
trimox 250mg brand arimidex 1 mg us buy generic clarithromycin online
affordable dissertation writing slots casino free spins
cheap trimox order trimox for sale order biaxin without prescription
cost rocaltrol 0.25 mg order calcitriol 0.25mg for sale tricor oral
purchase clonidine for sale order tiotropium bromide 9mcg for sale spiriva ca
rocaltrol online buy order trandate 100 mg generic buy generic tricor
order clonidine 0.1 mg online cheap antivert drug order tiotropium bromide 9mcg pill
acne oral medication without dermatologist buy acne pills online buy oxcarbazepine generic
minocycline 50mg pill minocycline 50mg generic buy ropinirole 1mg for sale
best dermatologist acne medication oral medication for cystic acne purchase trileptal without prescription
minomycin online buy terazosin drug order ropinirole generic
buy alfuzosin paypal stomach pain tablets list natural way to eliminate gerd
order uroxatral 10mg for sale prescription vs over the counter common medications for nausea
buy femara for sale purchase letrozole online aripiprazole 30mg price
buy sleeping tablets online uk approved drugs for weight loss online weight loss clinic prescription
femara pills cost femara how to get abilify without a prescription
medroxyprogesterone buy online purchase hydrochlorothiazide sale buy hydrochlorothiazide 25mg for sale
nhs stop smoking clinic painkillers buy online inexpensive prescription pain medication
provera 10mg tablet order microzide for sale buy microzide without prescription
prescription medications for smoking cessation treatment for osteoporosis in women buy online medication site
purchase periactin generic purchase periactin pills nizoral pill
antiviral drugs list least expensive asthma controller inhaler type 2 diabetes blood test results explained
cheap periactin buy periactin 4mg generic nizoral
medication that suppresses herpetic infection antivirals drugs list new ozempic weight loss drug
cost duloxetine 40mg oral cymbalta 20mg order modafinil 200mg generic
antifungal cream for pediatric face blood pressure medicine recalled today worst blood pressure medications list
can you take too much vitamin c per day chewable indigestion tablets pills for digestion and bloating
buy zithromax 500mg buy azithromycin 250mg sale how to buy gabapentin
buy generic zithromax online buy azithromycin pills gabapentin oral
medicine to prevent acid reflux best medicine for acid reflux pills to curerunny farts
buy ursodiol 300mg pills generic zyban 150mg cetirizine buy online
actigall 150mg tablet order actigall 150mg generic cetirizine 5mg oral
buy generic atomoxetine sertraline online order order sertraline 100mg pill
buy cheap generic lasix buy lasix 100mg online purchase albuterol inhalator
strattera 25mg usa strattera pills sertraline cheap
lasix 100mg cheap ventolin inhalator generic order albuterol 4mg for sale
escitalopram without prescription revia 50 mg cheap order naltrexone 50mg sale
order augmentin 625mg sale augmentin 625mg cheap buy cheap generic clomiphene
buy escitalopram 20mg generic purchase lexapro sale purchase revia without prescription
purchase amoxiclav without prescription buy levothroid without prescription order clomiphene 50mg generic
order combivent 100 mcg buy decadron generic order zyvox pills
combivent 100 mcg oral purchase decadron pills linezolid 600mg brand
order starlix 120 mg generic starlix order buy atacand 8mg without prescription
order vardenafil online vardenafil without prescription cheap plaquenil 400mg
buy generic nateglinide 120mg order nateglinide 120mg generic buy atacand 8mg for sale
buy generic vardenafil for sale buy tizanidine paypal buy hydroxychloroquine online cheap
nateglinide for sale online buy candesartan 8mg without prescription candesartan online buy
buy generic tegretol over the counter order tegretol 400mg for sale buy lincocin 500 mg
buy cenforce without prescription aralen 250mg drug glucophage online buy
buy cenforce for sale chloroquine 250mg drug metformin 500mg price
tegretol over the counter ciprofloxacin 500mg canada buy generic lincomycin online
buy atorvastatin 20mg pills order lisinopril 5mg pills buy zestril 10mg online
purchase duricef online order generic duricef how to buy epivir
buy lipitor no prescription buy lipitor 20mg generic zestril over the counter
cheap cefadroxil 500mg epivir over the counter lamivudine price
order omeprazole 20mg online omeprazole to treat heartburn tenormin 100mg brand
cabergoline 0.25mg usa buy cabergoline 0.25mg for sale buy priligy 90mg pill
cheap cabergoline 0.5mg cost dostinex order priligy 60mg online
buy depo-medrol no prescription purchase medrol sale order clarinex pills
medrol 16 mg for sale order generic desloratadine 5mg order clarinex 5mg for sale
cytotec online order order orlistat without prescription diltiazem 180mg pills
buy misoprostol pills for sale buy cytotec 200mcg pills buy cheap generic diltiazem
piracetam 800mg without prescription clomipramine 25mg oral anafranil brand
buy piracetam 800 mg online cheap piracetam 800 mg for sale order anafranil online cheap
order acyclovir 400mg generic order generic rosuvastatin order rosuvastatin 10mg generic
order acyclovir 800mg online buy acyclovir 800mg pills buy rosuvastatin generic
itraconazole order purchase tinidazole for sale tindamax 300mg tablet
where to buy itraconazole without a prescription purchase tindamax how to get tindamax without a prescription
purchase ezetimibe sale order motilium 10mg for sale tetracycline 500mg oral
order generic zetia cheap motilium tetracycline price
buy zyprexa 10mg generic order valsartan 80mg online cheap order valsartan pill
olanzapine online buy valsartan 80mg generic brand valsartan 160mg
order cyclobenzaprine for sale buy generic cyclobenzaprine over the counter toradol for sale online
cyclobenzaprine pill ketorolac us buy generic toradol
colcrys for sale online order generic colcrys methotrexate generic
best acne medication for men cleocin 300mg pill list of prescription acne medication
buy colchicine online cheap buy inderal generic methotrexate 2.5mg ca
most effective acne pills ranked order betamethasone 20 gm sale buy pills to treat acne
best allergy pill order cetirizine 10mg generic best allergy medicine for itching
otc allergy medication comparison chart buy loratadine 10mg online cheap alternatives to allergy pills
Joyful, I’ve ascended to this new height with this riveting book, many thanks to the author!
best otc heartburn med order allopurinol 100mg online
how to eliminate heartburn buy ramipril 10mg sale
buy strong sleeping pills oral modafinil
В прошлом месяце я определился с тем, что нужно обновить входную дверь в квартире. Выбрал сайт https://dvershik.ru, выбрал модель и заказал установку. Мастера приехали точно в срок, компетентно и оперативно смонтировали новую дверь. Очень доволен сервисом и результатом – теперь чувствую себя намного безопаснее!