added a databse setup thing in readme

This commit is contained in:
Valentijn :)
2024-01-10 16:11:54 +01:00
committed by GitHub
parent 1e812e31b3
commit 65fe4c1795

View File

@@ -1,5 +1,5 @@
# PS-Discord-BotBuilder # PS-Discord-BotBuilder
a wesbite to make discord bots This is one of my personal projects, and I plan to update it for a while to come. This is a node.js webserver, which is hosting a website, with which you can "make" a discord bot.
@@ -70,19 +70,13 @@ To get started with the project, you'll need to set up the database. Follow thes
``` ```
3. **Database Configuration:** 3. **Database Configuration:**
- Update the database configuration in your project. Find the configuration file, commonly named `config.js` or similar, and locate the database connection settings. - Update the content in the config.json file, if you dont have it, feel free to make use of the config.json.example for the layout of the json file.
- Modify the following parameters to match your MySQL setup:
```javascript
const dbConfig = {
host: 'localhost',
user: 'your_username',
password: 'your_password',
database: 'your_database_name',
};
```
4. **Running the Application:** 4. **Running the Application:**
- With the database set up and configured, you should be able to run your application. Follow the instructions in the main README to start the project. - With the database set up and configured, you should be able to run your application. To run it, please use the following command
```bash
./startServer.sh
```
Note: For security reasons, avoid storing sensitive information like database credentials directly in your public GitHub repository. Consider using environment variables or a configuration file outside the repository for such sensitive data. Note: For security reasons, avoid storing sensitive information like database credentials directly in your public GitHub repository. Consider using environment variables or a configuration file outside the repository for such sensitive data.