Setting Up a Local Development Environment for Peppermint
Project Setup Guide
Welcome to the project! This guide will help you set up Peppermint on your local machine for development purposes.
Prerequisites
Before you begin, ensure you have met the following requirements:
- Operating System: Windows, macOS, or Linux
- Node.js: Version 14.x or higher
- npm: Version 6.x or higher
- Git: Version control system
- Database: PostgreSQL or MySQL – Ensure it’s installed and running
Installation
Follow these steps to set up the project:
# Step 1: Clone the Repositorygit clone https://github.com/your-username/your-project.git
# Step 2: Navigate to the Project Directorycd your-project
# Step 3: Install Dependenciesnpm install
# Step 4: Set Up Environment Variables# Create a .env file in the root directory and add necessary environment variables# You can use the .env.example file as a referenceecho "DATABASE_URL=your-database-url" >> .envecho "API_KEY=your-api-key" >> .env
# Step 5: Database Setup (if required)# Run this command to set up the databasenpm run db:setup
# Step 6: Start the Development Servernpm start
# The application should now be running on http://localhost:3000
# Step 7: Running Tests# To run tests, use the following command:npm test
# Running tests helps ensure everything is functioning correctly in your local setup.
# With this setup, you’re ready to start developing on Peppermint!Issues
If you encounter any issues or need assistance, feel free to:
- Visit our GitHub page to report issues or browse existing discussions.
- Join our Discord community for real-time support and to connect with other users and contributors.
We’re here to help!