Giter VIP home page Giter VIP logo

defi-fa22's Introduction

DeFi CS294-177 Group Project Website

A Node.js app using Express 4. Live on https://defi-dream-team.herokuapp.com/

This application supports the Getting Started on Heroku with Node.js article - check it out.

Running Locally

To run this on your local machine...

Make sure you have Node.js and the Heroku CLI installed.

Next, you want to clone this github project:

$ git clone https://github.com/s-almeda/defi-fa22.git

cd into the new directory, then install the node dependencies as follows:

$ npm install

Next, open up the file called index.js Find the block that says:

//IF RUNNING LOCALLY, (eg to test) UNCOMMENT THIS BLOCK:
const host = 'localhost';
const PORT =  8000; //specify that we want to run our website on 'localhost:8000/'

//If running locally, comment out the following line. Be sure to uncomment it before pushing to the web server.
//const PORT =  process.env.PORT;

Remove the forward slashes from lines 12 and 13 to uncomment them. Use '//' to comment out line 16. Now you're ready to run locally! Go back to your Command Line, and run:

$ npm start

Your app should now be running on localhost:8000. Any changes you make to the html/css/javascript should be reflected immediately. Be sure to recomment lines 12 and 13, then uncomment line 16 before you push changes to GitHub.

Deploying to Heroku

I'm not actually sure if this will work from your machines, but I believe that if you push changes to the GitHub they will be reflected on the live site. If not, I may have to run commands on my machine to get the live site to reflect updates. We can work it out! Pushing changes to github will look like the following:

$ git add CHANGEDFILENAME.txt 
$ git commit -m "describe your changes here"
$ git push

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

defi-fa22's People

Contributors

zeke avatar jonmountjoy avatar hunterloftis avatar s-almeda avatar jmorrell avatar lillianzhang331 avatar lyzidiamond avatar samccone avatar raul avatar danielleadams avatar scantini avatar cggaurav avatar joshwlewis avatar theneva avatar friism avatar r0mdau avatar toolshd avatar

Watchers

 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.