Running the application

Now if you run your index.ts, a connection with database will be initialized and a database table for your photos will be created.

  1. +-------------+--------------+----------------------------+
  2. | photo |
  3. +-------------+--------------+----------------------------+
  4. | id | int(11) | PRIMARY KEY AUTO_INCREMENT |
  5. | name | varchar(100) | |
  6. | description | text | |
  7. | filename | varchar(255) | |
  8. | views | int(11) | |
  9. | isPublished | boolean | |
  10. +-------------+--------------+----------------------------+