Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kuskusapp/kuskus

Food/drink sharing app
https://github.com/kuskusapp/kuskus

edgedb nextjs

Last synced: 9 days ago
JSON representation

Food/drink sharing app

Awesome Lists containing this project

README

        

# KusKus

Started from [Next.js + EdgeDB + EdgeDB Auth template](https://github.com/edgedb/nextjs-edgedb-auth-template).

Project was started for [EdgeDB hackathon](https://hackathon.edgedb.com). The [video](https://www.youtube.com/watch?v=w4gWZb7fTGY) gives an overview of it.

## Setup

[Bun](https://bun.sh) is used to run/install things.

```
bun i
```

Install [EdgeDB](https://www.edgedb.com/) using:\
(or update to version in [/edgedb.toml](edgedb.toml) using `edgedb cli upgrade`)

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
```

Create new EdgeDB instance:\
(if it asks you for version, accept `main`)

```
edgedb project init
```

Name instance `kuskus`. Apply migrations with:

```
edgedb migration apply
```

Setup auth with:\
(app name: "kuskus", and accept everything else)

```
bun auth:setup
```

Generate [EdgeDB-JS](https://github.com/edgedb/edgedb-js) types with:

```
bun generate:all
```

Sets up seed folder for [cli/seed.ts](cli/seed.ts) to work well.

```
bun setup
```

## Run

```
bun dev
```

Can then create account by pressing `sign up` on top corner.

More info on development can be read in [Next.js + EdgeDB + EdgeDB Auth template](https://github.com/edgedb/nextjs-edgedb-auth-template) and [EdgeDB docs](https://docs.edgedb.com/).

## Contribute

Always open to useful ideas or fixes in form of issues or PRs.