Giter VIP home page Giter VIP logo

yuraresearchdatabase's Introduction

banner

Do you want to help students find research? Want to get started with web development? Read the Getting Started below to learn more!

Testing branch deployed at https://yura-rdb-staging.herokuapp.com/

Getting Started

Running a local copy of RDB

Prerequisites:

  • You've installed npm
  • You've installed postgres
  1. Fork the repo on github
  2. Do a git clone to get it onto your local computer
  3. cd YURAResearchDatabase (change to the directory)
  4. npm install

You won't see anything yet, but it's working. You just need to run the Postgres server as well:

Setting up the database

In this repo, we've shipped a yurardb.dump file, which contains all the data.

In order to transform this file into a Hydrated, Fire-Breathing, Alive+Kicking database that LIves on a Server, we'll need to cast a full pg_restore spell.

  1. Create a new database (since pg_restore doesn't do this for you)
    • createdb -T template0 yurardb_testing
  2. Run the restore
    • pg_restore -d yurardb_testing yurardb.dump
  3. Test it out
    • psql

psql session

Great! Now the last step is to configure the app to connect to your local postgres database. To do this, go to bin/localcn.js, and fill out the localcn.postgres object like this:

localcn.postgres = {
    host: 'localhost',
    port: 5432,
    database: 'yurardb_testing',
    user: '{your user}',
    password: '{your password}'
};

Now, you should be able to connect to your local postgres database!

Running the server

To run your local instance of RDB, just do npm start and go to localhost:3000. We are working on a way to directly connect to the Heroku Postgres database.

More info to come - Stay tuned!

Hello friends.

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.