Giter VIP home page Giter VIP logo

call-rec-apis's Introduction

cj-app

Django 1.11 - Python 2.7

IMPORTANT NOTES:

1. If the backend require any database please use any IN-MEMORY or SQLLite database Unless mentioned in Questions Otherwise .
3. Make sure you follow the steps mentioned under "PROJECT START STEPS" and ensure that the steps execute successfully. 
4. Make sure you follow the steps mentioned under "DOCKER START STEPS" and ensure that the steps execute successfully. 

PROJECT START STEPS:

Pre-requisites:
1. Install need python and pip to be installed in your system.


Steps:
1. To run this application, do the following:
    1.a. Go to the project root directory.
    1.b. Run the following commands to install dependencies of the app:
    	- pip install -r requirements.txt
    1.c. Run the following command(s) in the terminal/command line to run the app:    
        - python manage.py runserver 0.0.0.0:8080

2. Go to http://localhost:8080 in your browser to view it.

DOCKER START STEPS:

Pre-requisites:
1. Make sure Docker is installed. Follow the Steps from http://console.codejudge.io/setup 

Steps:
1. Build the docker image:
    1.a. Go to the project root directory.
    1.b. Run the following command(s) in the terminal/command line:
        - docker build -t cj-app .

2. Run the image in a container (Make sure port 4200 is available):        
    2.a. Run the following command(s) in the terminal/command line:
        - docker run -i -p8080:p8080 cj-app
    2.b. Check the logs for any errors. 

3. Go to http://localhost:4200 in your browser to view it.

DOCKER STOP STEPS:

Steps:
1. Run the following commands:
    - docker ps
2. Copy the container id and run the below command:
    - docker stop <container_id> 
    - docker system prune

DOCKER LOGS:

Steps:
1. Run the following commans(s):
    - docker ps
2. Copy the container id and run the below command:
    - docker logs <container_id>

DOCKER REMOVE CONTAINER:

Steps:
1. Run the following command(s):
    - docker ps
2. Copy the container id and run the below command:
    - docker rm <container_id>
    - docker system prune

DOCKER REMOVE IMAGE:

Steps:
1. Run the following command(s):
    - docker ps
2. Copy the image id and run the below command:
    - docker rmi <image_id>
    - docker system prune

call-rec-apis's People

Contributors

nickaggarwal avatar

Watchers

 avatar  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.