Skip to content

ArthurVerrept/blickets-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Global installs:

We generate protos using a global install of protobuf, so go get it!

brew install protobuf

Run Databases:

To start the databases simply run:

docker-compose up -d

Install dependacies:

Once you have installed the global packages required, install the all the dependacies by pressing:

 cmd + shift + p
  • Select the Tasks: Run Task option
  • Then choose the: Install Dependacies task

Run the project 🏃:

Once you have installed the dependacies using the task, we can start the project by once again pressing:

 cmd + shift + p
  • Select the Tasks: Run Task option
  • Then choose the: Start Dev task

✨ If everything is setup correctly, you should be up and running ✨

Generate from protos:

To generate the protos we do much the same as before:

 cmd + shift + p
  • Select the Tasks: Run Task option
  • Then choose the: Generate and Link task

This 💫 automagically 💫 makes the generated proto package use the local version you just created. Don't worry however, when deploying it will still use the version deployed to npm.

To-do's:

Big improvements 🪄

  • Make onboarding better eg. Dockerify dev enviroment
  • Rewrite one or more services in golang
  • Distributed transactions with temporal
  • Git actions proto stuff
  • Somehow make each service deploy seperately through git
  • Make frontend not god awful
  • Generate frontend client
  • Investigate better gateway
  • Make calls unary
  • Use migrations
  • Move front-end into here for one giant monorepo

Small improvements 🌴

  • Make imports from proto-npm package service different per service i.e: import foo from ‘photo-npm/fooService’
  • Better logging
  • make files uploaded decentralised with IPFS
  • For safety, we would need a cron job to check the currently deployed contracts(events) so see if they are all in the dn since when the event is created there is a chance that the request to save that event in our db failed
  • Make url search params part of metadata, good stackoverflow explanation about how params in axios have to be appended in url path https://stackoverflow.com/questions/46404051/send-object-with-axios-get-request
  • Make transaction status call return something to indicate whether to reload the events which will save a lot of api reqs
  • Store userId in token key local storage or else you’ll be usingg someone else account
  • Add description in mongoldb for the event
  • Check if wallet address selected is the one that setup the events, if not show an alert banner
  • Create function to show all info in eventDisplayDetails from contract to slow down api calls
  • Fix sort on events
  • Add a link to list your token listed listed
  • Add contract level metadata https://docs.opensea.io/docs/contract-level-metadata
  • Add way to remove address form users account in settings
  • Add those returned addresses to local storage to to adhere to login flow and check if addresses exist before trying to add
  • Check status not working sometimes
  • Ticket has 0 value twice
  • Time need to be set
  • blockchainEventInfo currently does 4 requests to contract, make function on contract to return everything
  • Fix grace errors between each other by looking at this https://docs.nestjs.com/microservices/exception-filters#exception-filters
  • FAIRLY IMPORTANT, make request to get userId from email locked to outside somehow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published