Skip to content

shahenazmonia/week6-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

week6-test

This project has a server, front-end and a database, the server and front-end have been set up for you.

Tasks:

  • Create a database.
  • Build a database connection.
  • Write a schema for the database that has a 'cities' table with columns 'name' and 'country'
  • Write a handler for the endpoint /cities that gets all the cities data. To check that this is working go to 'localhost:3000/cities' in the browser, the result should be a list of the cities that the user have added to the database.
  • Write a handle for postData, when the user submits the form, a new city should be inserted into the database, if the user writes /cities again in the URL, the new city that the user added should be displayed.
  • Deploy your project on Heroku

Add the heroku website link on your README

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published