generated from well-known-components/template-server
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from decentraland/feat/add-favorites
feat: introduce favorites logic
- Loading branch information
Showing
107 changed files
with
21,275 additions
and
7,800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
HTTP_SERVER_HOST=localhost | ||
|
||
FAVORITES_PG_COMPONENT_PSQL_CONNECTION_STRING=postgres://testuser:testpassword@localhost:5432/marketplace | ||
FAVORITES_PG_COMPONENT_PSQL_SCHEMA=favorites | ||
|
||
SNAPSHOT_URL=https://score.snapshot.org/ | ||
SNAPSHOT_NETWORK=11155111 | ||
SNAPSHOT_SPACE=daotest.dcl.eth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Utilitarian compose file to locally run postgres service | ||
# for integration testing purposes. | ||
|
||
version: '3.8' | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
restart: always | ||
environment: | ||
- POSTGRES_USER=admin | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=marketplace | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
- ./test/db/init-schema.sh:/docker-entrypoint-initdb.d/init-schema.sh | ||
|
||
volumes: | ||
postgres_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"moduleFileExtensions": ["ts", "js"], | ||
"transform": { | ||
"^.+\\.(ts|tsx)$": "ts-jest" | ||
}, | ||
"coverageDirectory": "coverage", | ||
"collectCoverageFrom": ["src/**/*.ts", "src/**/*.js"], | ||
"coveragePathIgnorePatterns": ["/node_modules/", "index.ts", "src/migrations"], | ||
"testMatch": ["**/test/unit/*.spec.(ts)"], | ||
"testEnvironment": "node", | ||
"resetMocks": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"moduleFileExtensions": ["ts", "js"], | ||
"transform": { | ||
"^.+\\.(ts|tsx)$": "ts-jest" | ||
}, | ||
"testMatch": ["**/test/integration/*.spec.(ts)"], | ||
"testEnvironment": "node", | ||
"resetMocks": true, | ||
"setupFilesAfterEnv": ["./jest.setup.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import nock from 'nock' | ||
|
||
nock.disableNetConnect() | ||
|
||
// Allow localhost connections so we can test local routes and mock servers. | ||
nock.enableNetConnect('0.0.0.0|127.0.0.1|localhost') |
Oops, something went wrong.