An open API service indexing awesome lists of open source software.

https://github.com/codereviewvideos/nextjs-14-example-crud-app

NextJS 14 CRUD Forms Example
https://github.com/codereviewvideos/nextjs-14-example-crud-app

Last synced: about 2 months ago
JSON representation

NextJS 14 CRUD Forms Example

Awesome Lists containing this project

README

        

##

This is the code repo for the blog post at [https://codereviewvideos.com/nextjs-14-crud-forms-example/]()

To follow along:

* Clone the repo
* `npm install`
* `npm run dev`

Also in a different terminal, `docker-compose up`.

The post covers how to set up the database. Here is the SQL you will need.

```sql
DROP TABLE IF EXISTS things CASCADE;

CREATE TABLE things
(
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
quantity INT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
```

Have fun!