| title | Quickstart |
|---|---|
| description | Welcome to the Quickstart page! Here you will learn how to set up your local development environment and how to begin making edits to the code, along with best practices and some tips. |
- Node.js (v18 or higher)
- npm or yarn
- Git
-
Navigate to the GitHub Repository
-
Clone the Repository
> git clone https://github.com/d2dcure/d2d-cure.git > cd d2d-cure
-
Install Dependencies
> npm install -
Set up enviornment variables
- Create a
.envand.env.localfile in the root directory with the following variables:
DATABASE_URL_USERS="key_here" DATABASE_URL_PROTEINS="key_here" DATABASE_URL_ENZYMES="key_here" DATABASE_URL_PUBLICATIONS="key_here" FIREBASE_PRIVATE_KEY="key_here"
Note: the secret keys are not publicly available: please contact support to obtain the actual values for these keys. For simple frontend changes, secrets keys are not necessary.AWS_ACCESS_KEY_ID=key_here AWS_SECRET_ACCESS_KEY=key_here
- Create a
-
Start the development server
> npm run dev
- Database Connection Errors
- Check DATABASE_URL in .env
- Verify database server status
- Authentication Issues
- Verify Firebase configuration
- Check user permissions
- File Upload Problems
- Confirm AWS credentials
- Check file size limits
There are several tools that exist to be able to view the MariaDB database structure (database names, tables, columns, values, etc). One of the most popular and user-friendly options is MySQL Workbench.
- Download MySQL Workbench from the official website (https://dev.mysql.com/downloads/workbench/)
- Install and launch the application
-
Click the "+" icon to create a new connection
-
Configure connection settings:
- Connection Name: D2D-Cure-DB
- Hostname: [Your database host]
- Port: 3306
- Username: [Your database username]
- Password: [Your database password]
-
Test the connection and click "OK" to save
- Browse Structure: Expand the connection in the sidebar to view databases, tables, and columns
- Execute Queries: Open a new query tab to run SQL commands
- View Data: Right-click on tables and select "Select Rows" to see data
- Explore advanced features
- Create your first pull request
- Join the community