Skip to content

Commit

Permalink
feat: Live Nextjs with API Route
Browse files Browse the repository at this point in the history
  • Loading branch information
argentinaluiz committed Apr 1, 2022
1 parent 04dbc89 commit 06c4ca2
Show file tree
Hide file tree
Showing 10 changed files with 402 additions and 271 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Participe gratuitamente: https://imersao.fullcycle.com.br/

## Sobre o repositório
Esse repositório contém o código-fonte ministrado na aula Intensivão com Next.js: [https://www.youtube.com/watch?v=SuPvAnsw2qs](https://www.youtube.com/watch?v=SuPvAnsw2qs)
Esse repositório contém o código-fonte ministrado na aula Como criar API com Next.js integrando com outros sistema: [https://www.youtube.com/watch?v=8zCcNPntRIU](https://www.youtube.com/watch?v=8zCcNPntRIU)

## Rodar a aplicação

Expand Down
13 changes: 13 additions & 0 deletions api.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
GET http://localhost:3000/api/hello

###
GET http://localhost:3000/api/email
Content-Type: application/json

{
"assunto": "valor assunto",
"conteudo": "valor conteudo"
}

###
GET http://localhost:3000/api/users
216 changes: 0 additions & 216 deletions db.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,222 +183,6 @@
"email": "[email protected]",
"phone": "+1 (965) 408-3365",
"address": "591 Colby Court, Layhill, Missouri, 4733"
},
{
"id": "6244646286836c1f63fb2209",
"name": "Erickson England",
"company": "ZUVY",
"email": "[email protected]",
"phone": "+1 (824) 558-2718",
"address": "525 Harrison Avenue, Brule, Alaska, 3978"
},
{
"id": "62446462f4a1938dc8eb946b",
"name": "Bridges Reeves",
"company": "RODEOMAD",
"email": "[email protected]",
"phone": "+1 (987) 445-3380",
"address": "584 Moore Street, Greenbush, Arizona, 3400"
},
{
"id": "62446462427b20e62e08eb41",
"name": "Franklin Knox",
"company": "CORECOM",
"email": "[email protected]",
"phone": "+1 (974) 483-2026",
"address": "749 Lamont Court, Elliott, Nebraska, 5169"
},
{
"id": "62446462fae36f89dc5101d5",
"name": "Huffman Kirkland",
"company": "EXTRAGEN",
"email": "[email protected]",
"phone": "+1 (930) 455-2110",
"address": "681 Gunther Place, Ebro, Oklahoma, 5336"
},
{
"id": "624464626abc1066bb680674",
"name": "Angelita Bowman",
"company": "REMOLD",
"email": "[email protected]",
"phone": "+1 (900) 490-2623",
"address": "592 Bennet Court, Orin, Hawaii, 4783"
},
{
"id": "624464622b5b34ad568541d0",
"name": "Latoya Wooten",
"company": "DANCITY",
"email": "[email protected]",
"phone": "+1 (849) 537-3406",
"address": "105 Middleton Street, Williston, Maryland, 8519"
},
{
"id": "6244646204074db2ed404ed5",
"name": "Lillie Gomez",
"company": "XYQAG",
"email": "[email protected]",
"phone": "+1 (954) 556-2010",
"address": "903 Arlington Place, Ladera, Guam, 276"
},
{
"id": "624464622a58233641fdb15b",
"name": "Janie Nichols",
"company": "DECRATEX",
"email": "[email protected]",
"phone": "+1 (836) 481-2457",
"address": "462 Hunterfly Place, Rote, Wyoming, 2999"
},
{
"id": "624464626f3821c236d2e0fd",
"name": "Molly Ball",
"company": "MICRONAUT",
"email": "[email protected]",
"phone": "+1 (804) 583-3464",
"address": "848 Lombardy Street, Hessville, Mississippi, 2886"
},
{
"id": "62446462539b529d6f9beb32",
"name": "Hess Stokes",
"company": "PARAGONIA",
"email": "[email protected]",
"phone": "+1 (957) 441-2348",
"address": "260 Madoc Avenue, Lutsen, Minnesota, 3356"
},
{
"id": "62446462331560f580aa04f3",
"name": "Ebony Wright",
"company": "EXOSPEED",
"email": "[email protected]",
"phone": "+1 (857) 539-2906",
"address": "222 Dunham Place, Boonville, Maine, 8184"
},
{
"id": "62446462a1001fb3e04dfcb2",
"name": "Anne Delgado",
"company": "ULTRASURE",
"email": "[email protected]",
"phone": "+1 (937) 599-3250",
"address": "301 Grove Street, Gambrills, South Dakota, 6055"
},
{
"id": "624464620fb58199a43ba600",
"name": "Craft Dorsey",
"company": "SATIANCE",
"email": "[email protected]",
"phone": "+1 (850) 565-2279",
"address": "482 Milford Street, Sunnyside, Georgia, 2502"
},
{
"id": "62446462ddf7b7e9697dba13",
"name": "Livingston Curtis",
"company": "CUBIX",
"email": "[email protected]",
"phone": "+1 (808) 514-2436",
"address": "398 Elliott Walk, Jeff, District Of Columbia, 2649"
},
{
"id": "62446462c2bf6785c992d9ee",
"name": "Caitlin Barber",
"company": "BEADZZA",
"email": "[email protected]",
"phone": "+1 (996) 596-3655",
"address": "742 Eldert Lane, Fairfield, New Mexico, 2376"
},
{
"id": "624464629a59fec021c07294",
"name": "Porter Taylor",
"company": "GALLAXIA",
"email": "[email protected]",
"phone": "+1 (987) 497-3160",
"address": "666 Woodbine Street, Rossmore, Federated States Of Micronesia, 7674"
},
{
"id": "6244646267ba23b4796828c8",
"name": "Fitzgerald Fischer",
"company": "ZOLAR",
"email": "[email protected]",
"phone": "+1 (898) 600-3913",
"address": "715 Navy Street, Hamilton, Marshall Islands, 7310"
},
{
"id": "6244646229311ede58d904b4",
"name": "Sophia Kent",
"company": "NSPIRE",
"email": "[email protected]",
"phone": "+1 (838) 463-2701",
"address": "294 Vandalia Avenue, Why, Northern Mariana Islands, 5162"
},
{
"id": "6244646222c92d172bd75ec9",
"name": "Carter Tillman",
"company": "SPHERIX",
"email": "[email protected]",
"phone": "+1 (985) 455-3798",
"address": "249 Bush Street, Silkworth, New York, 2203"
},
{
"id": "62446462c507867a4a42b4aa",
"name": "Clayton Acevedo",
"company": "RUBADUB",
"email": "[email protected]",
"phone": "+1 (856) 587-3194",
"address": "671 Kensington Street, Winesburg, New Jersey, 5793"
},
{
"id": "62446462740bd4e14db65f02",
"name": "Leila Guy",
"company": "ATOMICA",
"email": "[email protected]",
"phone": "+1 (979) 460-3388",
"address": "310 Bartlett Place, Fulford, Wisconsin, 6485"
},
{
"id": "6244646286fe971c92f64e3a",
"name": "Nadia Frazier",
"company": "EVEREST",
"email": "[email protected]",
"phone": "+1 (984) 494-2577",
"address": "776 Bevy Court, Wolcott, Puerto Rico, 4260"
},
{
"id": "62446462dbea0b7b336cd417",
"name": "Carissa Cantu",
"company": "HELIXO",
"email": "[email protected]",
"phone": "+1 (931) 546-3302",
"address": "670 Visitation Place, Urbana, Connecticut, 7112"
},
{
"id": "62446462b1e0b3f44325a3cf",
"name": "Rios Kim",
"company": "GLUKGLUK",
"email": "[email protected]",
"phone": "+1 (956) 565-3590",
"address": "734 Desmond Court, Kaka, North Dakota, 822"
},
{
"id": "6244646247de027fd439728b",
"name": "Hodge Erickson",
"company": "PURIA",
"email": "[email protected]",
"phone": "+1 (872) 440-2930",
"address": "728 Jackson Street, Reno, Delaware, 2302"
},
{
"id": "6244646237518bbc39e635d8",
"name": "Eve Leon",
"company": "SLAMBDA",
"email": "[email protected]",
"phone": "+1 (926) 544-3159",
"address": "310 Cherry Street, Lookingglass, Texas, 7363"
},
{
"id": "6244646213290448c4bdf71f",
"name": "Esther Stephenson",
"company": "APPLIDEC",
"email": "[email protected]",
"phone": "+1 (978) 584-3472",
"address": "223 Hanson Place, Wattsville, Montana, 2968"
}
]
}
Loading

0 comments on commit 06c4ca2

Please sign in to comment.