Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niteshbalusu11/satoshi-money-assignment
https://github.com/niteshbalusu11/satoshi-money-assignment
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/niteshbalusu11/satoshi-money-assignment
- Owner: niteshbalusu11
- Created: 2024-03-29T15:59:57.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-29T19:57:09.000Z (9 months ago)
- Last Synced: 2024-10-12T20:35:36.872Z (2 months ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Assignment
- This full stack application consists of two directories
- Frontend directory is a React App with Vite
- Backend directory is an express app## Stack
- [Bun](https://bun.sh/) as the JS runtime
- [Express](https://expressjs.com/) as the backend framework
- Postgres as the db
- [Tailwindcss](https://tailwindcss.com/) for styling
- [React/Tanstack Query](https://tanstack.com/query/latest) for data fetching on the frontend## Run locally
- Easiest way to run locally is to use Docker and docker compose
- There is a `sample-docker-compose.yaml` file in the root.
- Pass the `POSTGRES_USER` and `POSTGRES_PASSWORD` variables to the compose file and start it up with `docker compose up -d`.## Usage
- Go to `localhost:4173` on your browser.
- You will see a sign in and sign up buttons.
- Hit sign up, enter a random name. Do a few sign ups for multiple users to by logging out.
- Copy one of the user's ID and use it for signing in. (There is no authentication).
- All users start with a starting token balance of 100k.
- Once you login, use send tokens button to send funds to other users.
- Current logged in user data is stored in local storage of the browser.