Coder Social home page Coder Social logo

abhaytrivedi / threehundreddaysofcode-be Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ravitandon90/threehundreddaysofcode-be

0.0 0.0 0.0 2.57 MB

Shell 0.18% JavaScript 6.97% C++ 25.66% Python 28.03% PHP 0.02% Java 36.77% Go 0.05% HTML 2.25% Dockerfile 0.08%

threehundreddaysofcode-be's Introduction

Introduction

This repository serves the backend system for The Three Hundred Days Of Code Challenge.
To learn more about the challenge please check out this link.

Note:

  1. This setup is for running the cluster locally.
  2. The codebase for the FE is present in this repository.

Pre-Requisites

The following are the pre-requisites for setting up the backend cluster:

  • Docker
  • Git
  • Java
  • MVN

Instructions to setup the backend

  1. Download the repo using the command:
  2. Setup Docker using this link.
  3. Install maven using this link for mac brew install maven
  4. Go to root-directory using the command:
    • cd ThreeHundredDaysOfCode-BE
  5. Build the backend using the following command.
    • mvn clean
    • mvn package
  6. Deploy the backend on local using the following commands:
    • cd deployments/local
    • set the following environment variables
      1. export USER=ravi # update with your username
      2. export DOCKER_TAG=ravitandon2/master-300-prod:0.3 # update with custom docker image
    • docker-compose up
  7. Verify that the Master Service is up using the ping command as follows:
    • curl localhost:80
    • You should get Master-Ok as the response.
  8. Run the following command to list all the running docker containers:
    • docker container ls
      You should see a Master Service and a Postgres server running.
  9. Load the data into the database using the following command:
    • docker exec -ti db psql -d postgres -U postgres -f /home/data.sql
  10. To bring down the cluster use the following commands:
    • Shutdown the cluster without deleting the data: docker-compose down
    • Shutdown the cluster and delete the data: docker-compose down --volumes

Three Hundred Days Of Code Challenge

Here is some information around the three hundred days of code challenge.

What is the challenge?

Your goal is to solve 1 coding problem every single day. After you solve the problem, submit the problem on ThreeHundredDaysOfCode and send a tweet with the hashtag (#300DaysOfCode).

What are the prizes?

There are three prizes:

  1. Monthly Coding Streak Challenge: Every month we will give out $200 to the person who submits a solution on the maximum number of days . You need a minimum of 20 unique days to qualify for the prize.
  2. Monthly Referral Challenge: Every month we will give out $50 to the person who brings in the maximum number of people to the community. You need a minimum of 10 successful referrals to qualify for the prize.
  3. The Coding God: The first person to complete a 300-day-long streak, will get a brand new IPhone. The solution should be your own and not copied from any other place.

Contact

threehundreddaysofcode-be's People

Contributors

ankittkp avatar hritik2002 avatar kpuneet-prog avatar lokeshsurya544 avatar madhavv024 avatar muditchoraria avatar pratyaksha462 avatar ravi-decoverai avatar ravitandon90 avatar swapnil-2001 avatar vamsaty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.