Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1022 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 1022 Bytes

Crypt-os

A web app for users to search information related the current crypto-currencies. So you can get more information about the crypto-currencies you are interested in.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

prerequisites

  1. Clone the repo:

    • git clone https://github.com/fac-13/crypt-os.git
  2. Run npm install to install all dependencies:

    • npm install
  3. Open either pgcli/psql, and create a database:

    • createdb testdb
  4. Create a user for your database using:

    • CREATE USER [the new username] WITH SUPERUSER PASSWORD '[the password of the database]';
  5. exit pgcli/psql and run the build the database locally using:

    • \q (exits pgcli/psql)
    • psql -d testdb -f [full file path to db build];
  6. Select data from coins table:

    • SELECT * FROM coins

Running the test

To see the tests used to build the app run:

npm test

what these test ----------------------------