Skip to content

hm-web-dev/intro-to-sqlite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to SQLite

This repo provides a very basic template for using sqlite with express.

Assignment

Write the rest of the missing endpoints in index.ts to create a simple backend for a CRUD app. This will require you to write code in db.ts as well!

The documentation for sqlite3 will be very helpful.

Make sure that you return the correct HTTP status code as well.

index.js

Most of this file should look familiar. Look at past assignments to review what each section of this file does.

You can ignore the middleware code -- at a very basic level, this code allows us to test our front end later on in this course.

db.js

The database foo.db contains one table named user.

Use DB Browser to explore this database before you write any code!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%