Welcome to the world of dashboard development! This guide will help you navigate through the setup process so you can get your project up and running in no time. Whether you’re a seasoned developer or just starting out, you’ll find this process user-friendly and straightforward.
Step 1: Install the Required Dependencies
Before diving into the project, ensure that you have the necessary dependencies installed:
- Node: Version 10.16.3
- Yarn: Package manager for JavaScript
If you don’t have Yarn installed yet, use the following command:
yarn
Step 2: Starting the Development Server
To develop the project, simply run this command:
yarn start
This will initiate your development environment, allowing you to make real-time changes to your dashboard.
Step 3: Setting Up the Backend Server API
If your project requires backend capabilities, you must have Redis running locally on port 6379 (the default port). If Redis is not installed, follow these instructions for macOS:
brew install redis
Once installed, ensure it’s running with the command:
brew services start redis
Now, to start up the backend server, execute:
yarn run start:backend
This command will create a proxy to the Browser-Sync server started by Gulp, which will be accessible at http://localhost:5000.
Step 4: Connecting to Big Query
While it’s not mandatory to connect to Big Query for running the backend (especially if you set UPDATE_DATA to false), it is essential for fetching ledger data in Redis.
This project pulls data from the SDFs crypto-Stellar public data set, so no special credentials are required. However, to access Big Query, you do need a Google Cloud Platform project with a service account.
For detailed instructions on creating a service account, visit this guide.
Once you have created the service account, remember to add the service account key JSON file to the gcloud folder with the name service-account.json. Ensure your file structure looks similar to the example provided in the guide.
Troubleshooting Tips
Running into issues? Here are some common troubleshooting ideas:
- Redis Not Starting: Make sure you’ve installed Redis correctly and that it’s running on the specified port. You can check the status with
brew services list
. - Backend Not Connecting: Verify that you are running the command in the correct directory where your project files are located.
- Big Query Access Issues: Double-check your service account setup and ensure the proper JSON key file is in place.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Final Thoughts
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.