CONTRIBUTING.md
This commit is contained in:
parent
c8d9abf49f
commit
ca6f54cb21
2 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,14 @@
|
||||||
# Contributing code
|
# Contributing code
|
||||||
|
|
||||||
# Dev Install
|
# Dev Install
|
||||||
|
## Docker Compose
|
||||||
|
### Copy one
|
||||||
|
- [docker-compose-postgres.dev.yml](./docker-compose-postgres.dev.yml)
|
||||||
|
- [docker-compose-surrealdb.dev.yml](./docker-compose-surrealdb.dev.yml)
|
||||||
|
#### Then run:
|
||||||
|
- `docker compose -f docker-compose-postgres.dev.yml up --pull always -d`
|
||||||
|
- `docker compose -f docker-compose-surrealdb.dev.yml up --pull always -d`
|
||||||
|
|
||||||
## Dev Containers
|
## Dev Containers
|
||||||
Install docker, vscode and the [Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
|
Install docker, vscode and the [Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export async function querydb() {
|
||||||
stats = await db.query(`
|
stats = await db.query(`
|
||||||
select * from url
|
select * from url
|
||||||
order by clicks desc
|
order by clicks desc
|
||||||
limit 50;
|
limit 10;
|
||||||
`);
|
`);
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -22,7 +22,7 @@ export async function querydb() {
|
||||||
stats = await sql`
|
stats = await sql`
|
||||||
select * from url
|
select * from url
|
||||||
order by clicks desc
|
order by clicks desc
|
||||||
limit 50;
|
limit 10;
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue