GithubHelp home page GithubHelp logo

web-capstone's Introduction

StoreFact Project

A project to store stories and facts build on React, Node and Postgres

Getting Started

The repo contains Code for frontend and backend API.

How to Setup Backend for project:

  1. Run "npm i" to install all the modules

  2. Setup te Datbase:
    -- "sudo -u postgres psql" to open postgres terminal
    -- "CREATE USER WITH PASSWORD ;" to create the user.
    -- "CREATE DATABASE <database_name>;" to create the new database.
    -- "\c <database_name>" to connect to newly created databse
    -- "GRANT ALL PRIVILEGES ON DATABASE <database_name> to ;" to grant the permission.
    -- "\q" to come out of the postgres terminal. \

  3. Create .env File inside project folder with following details:
    DATABASE_NAME=<database_name>
    DATABASE_HOST=<database_hostname>
    DATABASE_USERNAME=<database_username>
    DATABASE_PASSWORD=<database_password>
    DATABASE_PORT=<database_port>
    JWTSECRET=<database_JWTSecret>
    SALTROUND=<SALT_ROUND>

  4. Run Command : "db-migrate up -m ./migrations/ --config ./config/database.json" to run the migrations.

OR

  1. Up environment: npm run db:create

  2. "npm run start" to start the server.

  3. "npm run test" for testing the apis.

web-capstone's People

Contributors

shubham16598 avatar

Watchers

Shubham Singh (Old Account) 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.