Coder Social home page Coder Social logo

liso-starter-code's Introduction

project-1

This repository contains the starter code for CMU 15-441/641 Networking and the Internet Project 1: A Web Server Called Liso.

1. Files

  • DockerFile: Script to build the docker image for the project's environment.
  • Makefile: Contains rules for make.
  • README.md: Current document.
  • cp1: CP1 scripts and examples.
  • cp2: CP2 scripts and examples.
  • cp3: CP3 scripts and examples.
  • src/: Source code for the project.
    • src/echo_client.c: Simple echo network client.
    • src/echo_server.c: Simple echo network server
    • src/example.c: Example driver for parsing.
    • src/lexer.l: Lex/Yacc related logic.
    • src/parser.y
    • src/parse.c
  • include/parse.h

2. Environment Setup

  1. Install docker: https://www.docker.com
  2. Open a terminal and navigate to the directory containing this README.md file.
  3. Build the docker image: docker build -t 15-441/641-project-1:latest -f ./DockerFile .
  4. Run the docker container: docker run -it -v `pwd`:/home/project-1/ --name <name for your container> 15-441/641-project-1 /bin/bash
  5. The starter code for the project is available at /home/project-1/ in the container and . on your local machine. To make development easier, a mapping is established between these two folders. Modiying the code in one location will also effect the other one. This means that you can use an IDE to write code on your local machine and then seamlessly test it in the container.
  6. To test your server using a web browser, you need to configure port mapping for the docker container. Simply add the argument -p 8888:15441 to the docker run command to establish a mapping from 127.0.0.1:15441 in the container to 127.0.0.1:8888 on your local machine. Then you can test your server by using a web browser (e.g., Chrome) on your local machine to navigate to the URL 127.0.0.1:8888.

liso-starter-code's People

Contributors

arttianezhu avatar ccanel avatar justinemarie avatar pengyun961012 avatar zechengh09 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.