Giter Site home page Giter Site logo

trackr-dashboard's Introduction

trackr-dashboard

How to run trackr dashboard

First, git clone the repository

Download Postgres

Add credentials to db.js

const pool = new Pool({ user: "postgres", password: "XXX", host: "localhost", port: 5432, database: "authtodolist"

});

Download node.js

Add node.js

Open postgres

psql -U postgres

Commands:

\l = see all databases

\c = connect to the database

\d = see all tables in the database

\d <table_name> = see all columns in table

select * from <table_name>;

Run these commands:

CREATE DATABASE authtodolist;

CREATE TABLE users( user_id UUID DEFAULT uuid_generate_v4(), user_name VARCHAR(255) NOT NULL, user_email VARCHAR(255) NOT NULL UNIQUE, user_password VARCHAR(255) NOT NULL, PRIMARY KEY (user_id) );

CREATE TABLE todo( todo_id SERIAL, user_id UUID, description VARCHAR(255) NOT NULL, PRIMARY KEY (todo_id), FOREIGN KEY (user_id) REFERENCES users(user_id) );

CREATE  "uuid-ossp";

Running the server

cd server
npm i
npm start

Running the frontend

cd client
npm i
npm start

trackr-dashboard's People

Contributors

shraddha55 avatar

Watchers

Debparna Pratiher 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.