Skip to content

onlydust-bot/marketplace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,562 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marketplace

Marketplace monorepo

⚠️ WARNING! ⚠️

This repo contains highly experimental code. Expect rapid iteration.

Global architecture

Global architecture

Github indexing

Github indexing

Data Diagram

Data Diagram

Development

🎗️ Prerequisites

📦 Installation

cp .env.example .env

Then modify the values tagged with REPLACE_AT_INSTALLATION according to your personal accounts.

You can now run the project installation script:

make install

🔬 Usage

List all available commands:

make

Below are some examples of usage.

Load latest staging dump

Start by cleaning your local env:

make docker/clean

Then, load the dump:

make db/load-fixtures

If the dump is out of date, you can update it with:

make db/update-staging-dump

Using Hasura

See Hasura documentation.

For convenience, some commands are available from the root of the repo:

make hasura/start # Apply metadata and start the console

🔬 Frontend

To run in development mode

yarn dev

To run in development mode with the develop backend

yarn dev --mode backend

🛠 Build

yarn build

To run build locally :

yarn preview

📚 Storybook

To view components in isolation using Storybook

yarn storybook

🕸 GraphQL codegen

To generate types from the Hasura GraphQL schema during development

yarn generate --watch

Use the HASURA_URL and HASURA_SECRET_KEY environment variables to connect to a custom Hasura environment

📚 Update list of supported languages

You'll need yq and jq

brew install yq jq

To update the list of supported languages (taken from Github) used to autocomplete technologies in the profile edit form

yarn update-languages

🌡️ Testing

Backend

Make sure the docker is up and running. Then run the following command:

cargo test

Frontend unit/integration

yarn test

End-to-end testing

make app/background-start
make playwright/test

Migrate database

  • To create a new migration, start running
diesel migration generate <your-migration-name>
  • Edit the generated files with your SQL code for up.sql and down.sql
  • Test your migration up and down by running
diesel migration run
diesel migration revert
diesel migration run
  • The file schema.rs should be then automatically updated

Security

To activate the GitGuardian pre-commit, you need first to connect to GitGuardian :

Then, install GitGuardian pre-commit hook to check if some secrets are leaked inside the code base :

run pre-commit install

Monitoring

We use Datadog as a monitoring solution. Datadog agents and drains are configured using Terraform.

📄 License

marketplace is released under MIT.

Acknowledgements

This project is tested with BrowserStack.

About

Contributions marketplace backend services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 78.6%
  • Rust 18.8%
  • PLpgSQL 0.9%
  • JavaScript 0.8%
  • Shell 0.4%
  • Makefile 0.3%
  • Other 0.2%