Welcome to CP-Mate, the ultimate platform designed to cultivate a vibrant programming community and elevate your coding journey. Tailored to meet the unique needs of programmers at every level, CP-Mate stands as a testament to collaborative learning, innovative problem-solving, and growth.
At the heart of CODE-Mate lies a groundbreaking feature - the Collaborative Knowledge Exchange. Have a programming query? Pose your question, and let the power of GPT provide you with an initial response. But we understand that AI isn't perfect. That's where our passionate community steps in. Experienced programmers can further guide, refine, and elaborate on GPT-generated answers. This ensures accuracy, relevance, and a safe space for knowledge-sharing. Together, we bridge the gap between AI and human expertise.
wecode understands the importance of a personalized experience. Seamlessly create accounts, log in securely, and unlock a world of possibilities.
Fuel meaningful discussions by crafting engaging posts on programming intricacies. Express your thoughts, gain insights, and ignite conversations. Like, dislike, comment, and edit posts - your voice matters.
Our game-changing Knowledge Fusion feature harmonizes the capabilities of GPT-powered responses with the wisdom of seasoned programmers. Pose programming queries, receive GPT-generated answers, and let our passionate community refine and expand on them.
Embark on a learning journey with our dedicated Learn section. Immerse yourself in enlightening blogs and tutorials, with a spotlight on Data Structures, Algorithms (DSA), and Competitive Programming.
Hone your skills in the Practice section:
- Codeforces Challenges: Curate your coding challenges using tailored filters.
- Unsolved Gems: Unearth unsolved problems from Codeforces and tackle them head-on.
- Contest Chronicle: get information about past Codeforces contests and benchmark your skills.
- Problem Perfection: Access curated problem sheets, including the esteemed Striver DSA sheet.
Competitive programming aficionados, rejoice! Our visualizer offers insightful statistics and analytics for your Codeforces handle. Elevate your performance tracking with visual clarity.
Reflect your coding persona through customizable profiles. Share your coding odyssey, connect with fellow enthusiasts, and leave your unique mark.
- Backend: Node.js, Express.js, mysql2
- Frontend: React
- Authentication: JWT (JSON Web Tokens)
-
Create a database to save all the data for the project in the MySQL server you are using(either localhost or some other hosted server)
/* create database */ create database <database_name> ;
-
Create .env file in backend folder
MYSQL_HOST="" # mysql host MYSQL_USER="" # mysql user MYSQL_PASSWORD="" # mysql password MYSQL_DATABASE="" # mysql database name SECRET_KEY="" # secret key to hash password GPT_API_KEY="" # gpt access key for API requests to chat-gpt(Model: gpt-3.5-turbo) GPT_BASE_PATH="" # gpt base path for the API requests to chat-gpt(Model: gpt-3.5-turbo)
-
Clone the repository:
-
Install the dependencies for the backend:
cd CP-Mate/backend npm install
-
Install the dependencies for the frontend:
cd ../frontend npm install
-
Start the backend server:
cd ../backend node index.js
-
Start the frontend development server:
cd ../frontend npm start