Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 

Repository files navigation

codewars

overview

A platform where you can solve interesting problems with support of most popular languages like c++ , java and python. Dashboard to track number of problems solved by rating. Piechart to analyse how often you make mistakes.

installation

step 1 : Clone the repository

git clone https://github.com/Developerganesh01/CodeWars

step 2 : Set up backend server

  1. Navigate to the backend directory:

    cd backend
  2. Create a .env file:

    touch .env
    vim   .env
  3. Copy the following environment variables into the .env file. Replace <Database_name>,<Database_username>, <Database_password>, and <Secret_key> with your actual values:

    • <Database_password> is password of <Database_username>, also make sure given user have read and write access
    • <Secret_key> this is secret key used in jsonweb token
    PORT=4000
    MONGODB_STRING=mongodb+srv://<Database_username>:<Database_password>@cluster0.yc1drxa.mongodb.net/<Database_name>?retryWrites=true
    w=majority&appName=Cluster0
    MONGODB_USER=<Database_username>
    MONGODB_PASSWORD=<Database_password>
    SECRET_KEY=<Secret_key>
    ORIGIN=http://localhost:3000
  4. Start backend server:

    node server.js

step 3 : Set up frontend server

  1. Navigate to the frontend folder:

    cd ../frontend
  2. Install the dependencies:

    npm install
  3. Start the frontend server:

    npm start

Usage

  1. Login/Signup: Create an account or log in to Codewars

    signup login

  2. Home: Problems are displayed on this page

    home

  3. Submission:You can see your subission list along with verdict

    submissionpage

  4. particularsubmission:To see a particularsubmission

    particularsubmission

  5. Dashboard:Dashboard to see overall performance

    Dashboard1

  6. Run:here is how you test your code

    • On home click on any problem and run testcase by coping inputs and paste in testcase section as shown below :⬇️
    • Result for inputs will be shown in TestResult, to see hit run button
    • Then click on submit to check whether your code is correct or not

    testcaseresult

  7. Submit:Click on submit, then hidden testcases will run and verdicts of testcases are shown in testresult box as shown ⬇️

    testsubmit

  8. Create:If you are problemsetter then you will be able to see floating button on bottom left corner

    create

  9. Add problem and Testcases:Add all details about problem and testcases

    • Add detais about problem first
    • After adding problem successfully,there is fill problem id button click on it, you will get Pid,then add details about testcase then click on add testcase

    add problem

High-Level Design

For deeply understanding the project architecture and design, refer to High-level Design Document

Video Overview

Check out our project overview video on Loom.ai to see how Codewars works in action: Watch Project Overview

Contact

For any questions or support regarding Codewars, please feel free to reach out to us via email at ganeshsm466@gmail.com

Acknowledgments

Codewars acknowledges and thanks the following open-source projects that contribute to its functionality:

About

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages