Git Product home page Git Product logo

WMFO

This is the overall guide to getting this codebase running locally.

Intended for developers associated with Tufts University WMFO.

For making changes to the codebase, please reference the CONTRIBUTING.md guide once you've followed all the steps below.

Installation

These installation steps are written with Mac OS in mind. Some Windows/Linux tips may be scattered throughout but are untested. The main setup.sh script assumes bash is available.

  1. Install Homebrew, a package manager for Mac OS (ignore if on Windows; if on Linux, use your standard package manager).
  2. Install Node and NPM with brew install node. You may need to change some XCode permissions on Mac OS (you'll be prompted if that's the case) (if on Windows, install Node and NPM however you can :) )
  3. Rename the file server/.dev.env to server/.env, which will set you up with the bare minimum environment config variables.
  4. In the root directory of the repo, run ./setup.sh which will try to install all the necessary dependencies and build the front end for the first time. There should be no errors.
  5. Install Postgres (maybe follow this, but we don't need steps 5 or 6), and get it running.
  6. Be sure that the DEV_DATABASE_URL field in server/.env is set to the value postgres://localhost/wmfo_db. This should already be the case.
  7. Run cd server/db; ./setupDb.sh localhost which will set up the database wmfo_db in Postgres. BE AWARE that this will delete the wmfo_db database if it exists already, so be sure to only give an argument other than localhost if you REALLY know what you're doing.

Running

  1. Change into the server/ directory with cd server/
  2. Do npm run dev. If you have set everything up in the Installation section, you should be able to go to localhost:5000 in your browser and see an example page.

WMFO, Tufts Freeform Radio's Projects

WMFO, Tufts Freeform Radio doesnโ€™t have any public repositories yet.

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.