is a crypto-collectible gem stone game created on top of the Ethereum blockchain. Each xrystal is an unique collectible object generated and visualized in real time. You can buy xrystals either from our xreator page or buy, sell, and even trade them in our marketplace. You can use our visualizer to see your xrystals in one of five custom environments specificallty tailored to display your xrystal collection in all its beauty. Eventually you will even be able to trade your xrystals with other players too!
First and foremost set up a firebase project @ https://firebase.google.com/
Open your preferred terminal, and enter the following command to clone source to your local machine:
git clone https://github.com/agro23/xrystal.gitnavigate to the Xrystal directory:
cd xrystalcreate a place to store your api-keys:
cd src
cd app
touch api-keys.tsRetrieve your api keys located @
https://console.firebase.google.com/project/[YOUR PROJECT HERE]/overview
apiKey: "",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: ""Store and export firebase api-keys in api-keys.ts file with the following codeblock (syntax is important here y'all):
export var masterFirebaseConfig = {
apiKey: "FAKESTRING-99999-999_FaKeeSTring",
authDomain: "yourprojectname-420b3.firebaseapp.com",
databaseURL: "https://yourprojectname-420b3.firebaseio.com",
storageBucket: "yourproject-420b3.appspot.com",
messagingSenderId: "10101010101"
};Install angular globally (if you haven't already):
npm install -g @angular/cli@1.6.5Build out the angular project and import dependencies:
ng serve --openUpdate node_modules and confirm project isn't throwing errors
npm installIf build is clean set the production version in the root directory
ng build --env=prodInstall the firebase-tools globally if you haven't already
npm install -g firebase-toolsRun the login command
firebase loginInitialize the firebase project
firebase initSelect database and hosting when prompted
? What Firebase CLI features do you want to setup for this folder?
[X] Database: Deploy Firebase Realtime Database Rules
[X] Hosting: Configure and deploy Firebase Hosting sitesWhen prompted set firebase default root from public to /dist
?(public) distset database.rule.json to true in project file
{
"rules": {
".read": true,
".write": true
}
}deploy to firebase in command line
firebase deployopen in browser from command line or firebase.com
firebase open
>Hosting: Deployed siteCongratulations you are now the proud owner of a clean new xrystal wallet/skin! You're one heck of a gemmer!
| Input | Output |
|---|---|
| Username: Testo Password: lambchop420 | Welcome to the Xrystal marketplace Testo! |
- ####User can purchase existing xrystals in marketplace
| Input | Output |
|---|---|
| Purchase xrystal **'green-racoon' ** | Testo is now the proud owner of 'green racoon' xrystal |
| Input | Output |
|---|---|
| Generate xrystal | 'jumping-ferret' xrystal generated |
| Input | Output |
|---|---|
| View xrystals | Testo owns 2 xrystals. 'green-racoon, and jumping-ferret' |
##features
- User authentication
- Generates xrystals based off algorithm
- Presents user with xrystal marketplace for xrystal purchasing
- Xrystal visualizer using Aframe
- Robust xrystal generation, and 3d model manipulation
- Tie xrystals to the Ethereum network
- Xrystal AR game for iOs/android.
- HTML
- JavaScript
- CSS
- Angular
- Typescript
- Firebase
- Swiss ephemeris
questions/comments/concerns
Copyright 2018
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
https://codepen.io/netsi1964/full/PZJEQe/