RandInaim / week6-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 70.0%Language:CSS 13.9%Language:HTML 11.6%Language:PLpgSQL 4.5%