Giter Club home page Giter Club logo

mse_meng's Introduction

MS&E_M.Eng.

https://mse5010.mse.cornell.edu

A web app that matches incoming Master of Engineering (M.Eng.) student with projects uploaded by varies companies for the Materials Science & Engineering department at Cornell University.

Uses Django, Django REST framework, React, and Redux.

Installation (Mac)

The application will use two different development servers for Django and React. They will run on different ports and will function as two separate domains. Because of this, we need to enable cross-origin resource sharing (CORS) to send HTTP requests from React to Django without being blocked by the browser.

Create a virtual environment using the venv Python 3 module:

$ python3 -m venv ./env

Activate the created virtual environment using source:

$ source env/bin/activate

Install any project dependencies:

$ pip install -r requirements.txt

Navigate to the project folder(if you type ls you should see a package.json file) and install everything:

$ npm install

A node_modules/ folder should have appeared. If so, start the django server:

$ python3 manage.py runserver

Keep this terminal open, open a new terminal, activate the virtual env, and start the react server:

$ source env/bin/activate
$ cd mse_meng
$ npm start

mse_meng's People

Contributors

xavierlyu avatar duraianeesh338 avatar mayaankvad avatar rsha256 avatar

Watchers

James Cloos avatar  avatar

mse_meng's Issues

Display Alerts when there's error

After HTTP POST request, if there exists an error, then all the detailed error message will be contained in err.response.data (or this.props.error.response.data). It's a JSON file like the following:

{
    "username": [
        "A user with that username already exists."
    ],
    "email": [
        "A user is already registered with this e-mail address."
    ],
    "undergrads_university": [
        "This field may not be blank."
    ],
    "undergrads_major": [
        "This field may not be blank."
    ]
}

For each entry, display an alert with its detailed message. The alert should only be displayed once and stay for a short amount of time.

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.