Giter VIP home page Giter VIP logo

rajgurung / keepmefiit.com Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 5.0 4.84 MB

:running: 🚴 :swimmer: NextGenFitnessApp :bento: Moved to https://github.com/hobbyist-team/keepmefiit_backend/

Home Page: http://keepmefiit.com

Ruby 71.33% HTML 23.54% Dockerfile 0.18% JavaScript 0.63% CoffeeScript 0.59% CSS 3.74%
nextgenfitnessapp meals meal-planner workouts workout-planner e-commerce personal-trainer fitness-app fitness fitness-social-platform

keepmefiit.com's Introduction

KeepMeFiit - NextGenFitnessApp Codeship Status for rajgurung/blog StackShare

https://rajgurung.github.io/keepmefiit.com/

  • Dashboard
  • Thrid Party API integration
  • Omniauth
  • Connection
  • E-commerce
  • Online Magazine/subscription basis

Alt Text

Postgres Installation & Schema load

Step 1: If you have homebrew already. Skip to 2.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Step 2: Install Postgresql with brew

brew install postgresql

Step 3: make sure Postgres starts every time your computer starts up. Execute the following command:

pg_ctl -D /usr/local/var/postgres start && brew services start postgresql

Step 4: make sure Postgres is installed and running. Let’s check what version is running:

Postgres -v

###Your PG db is set up. Onto the next step to create Role.

Step 1: open postgres, this will open up Postgres terminal

psql postgres

Step 2: create role

CREATE ROLE keepmefiit WITH LOGIN PASSWORD ‘generate your password form rails console => SecureRandom.uuid’;

Step 3: give permission to create db

ALTER ROLE keepmefiit CREATEDB;

Step 4: check attributes, you should see ‘Create DB’ next to your Role name

\du

Step 5: quit from terminal

\q 

Step 6: login from terminal using keepmefiit

psql postgres -U keepmefiit

Step 7: create database

CREATE DATABASE keepmefiit;

Step 8: Once this is done, you need to add at least one user who has permission to access the database (aside from the super users, who can access everything)

GRANT ALL PRIVILEGES ON DATABASE keepmefiit TO keepmefiit;

Step 9: list all pg database

\list

Step 10: connect to specific database

\connect keepmefiit

Step 11: to quit from psql terminal

\q

###Ok that it we are ready to setup our db.

Step 12: In your project root, run below.

bundle exec rake db:setup

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.