Posts

Showing posts from April, 2021

boutique website

 in rails  schema boutique mein kya kya karna hota hai :: 1. naap lena 2. customers ka record rakhna  name , email ,  mob , customer name ,  fees paid ,  customer dress code no  customer ki id clothes mein jayegi   3. kapdon ka record rakhna cloth id  cloth name customer name 

project documentation :: sunrise app - sunrise order form

  Project Documentation :: Sunrise Order ............................................................................................................................................................. Project Received :: 28 Apr 2021 Project Completed :: 30 Apr 2021 Older Ruby Version :: 2.3.1 Older Rails Version :: 3.2.14 Newer Ruby Version :: 3.0.1 Newer Rails Version :: 6.3.1.1 ..................................................................................................................................... Steps Followed during the Process :: A Run the Previous Project with before Versions B bundle with ruby (updated given version) C bundle with rails (updated given version) D rake db:create E rake db:migrate F dump import file G Run the project after error ..................................................................................................................................... Errors that Comes in the Project and Process that follows for that :: ........................

Sunrise Project Documentation :: How to convert one Project in another Project

 Date:   28 April to 30 April  :: Kapil sir give this sunrise project for change the version of ruby and rails and at last kapil sir give me dump file and i required to run this project and export it in the pdf file. .........................................................................................................................   Step 01::  Extract the Project  Step 02::  Run the Project after reducing errors at the same version  Step 03::   Change the dependencies in the Gemfile and Run the bundle at New Ruby Version  Step 04::  Change the dependencies in the Gemfile and Run the bundle at New Rails Version  Step 05::   rake db:create  Step 06::   rake db:migrate  Step 07::   Git Init the project with git init command at terminal and make the commits by time to time after that send that project to the git repository to track all errors and commits about the project.  S...

Sunrise Project Documentation

Series of Erros in this Project and resolve it  gem 'devise'  add and bundle Errors and their Solutions: 

Rails project Version Change

prashant guidance  01 : extract application 02: kis ruby ke kis version par hai  03: migration covert karni padhti hain 04:  rinku guidance 1. extract 1. project setup  2. bundle chalao  bundle par error ayegi ,dependencies lagi hogi toh unko hatana padhega pehle 3. database create karna and chala ke dekhna us hisab se  4. gemfile mein jana aur version change karna unko aur bundle chalaoge toh dependencies chalegi nai unki versions ki toh pehle old file ko save karke rakh lena kaheen par aur baki ke bundle hata hata kar dekhna unke ki kisemin error aa rahi hai..kismein nai aa rahi hai woh check karne padhenge tumhe saare  5. bundle chal jaye toh database create karna usmein bhi dikkat ayegi thodi bahut usko bhi fauran solve karna padhega  6. migrate bhi karna padega 7. pehle bundle hi nai chalega usimein dikkat ayegi... 8. gorails par dekh lena go rails par sab hai... .......................................................................... my do...

skool-project

contacts  - made but not full crud with errors  queries - create but not full crud with errors details - initial errors resumes -errors registrations - made but not full crud with errors libraries - made but not full crud with errors authority messages - made but not full crud with errors event-  left all reducer services actions and files and controllers our school-  left  all reducer services actions and files and controllers  news-  left  all reducer services actions and files and controllers  labs-  done stock-  left  all reducer services actions and files and controllers  departments-  left  all reducer services actions and files and controllers  rooms-  left  all reducer services actions and files and controllers  news-  left  all reducer services actions and files and controllers  attachments are made in schema made a full crud of this  schoolcalender blog sport ques...

skool-app

curriculum ==  string  string  Our School :: our_schools   rails g model OurSchool branch_name:string description:string  school_branch:text,  description:string, News :: rails g model News date:date title:text description:string image:string 11 date:date title :text description:string image:string  Room Table:    rails g model Room room_incharge:string  no_of_tables:string  no_of_chairs:string    board_present:boolean  lecton_present:boolean capacity_for_visitors:decimal  room_assigned_for :string   ----- Add it    Seminar Table:  rails g model Seminar  name:string  topic:string date:datedescription:string  chief_guest:string   venue:string  convener_name:string   Event Table: rails g model Event name:string date:date title:text description:string  Our School Branches Table: rails g model OurSchool branch_name:string description:string...

Search Bar in React+Rails+Redux

Step 01: In Actions :: add exam or vehicle or model name in short or any other name you want in the Actions. Step 02: In Services :: add search option  with if else condition in that with BASE_url. Step 03: Changes at the front end Page : A: handleOnChange B: handleSubmit C: Add Search Form Step 04: Add Search Method with If else Condition in Index Section. .................................................................................................................................................. Step 01: Index.js Page : Add Dynamic Search Method in Front End - React A::::::::::::::::::::::  Add Import Methods ::::::::::::: import {   ListGroup,   ListGroupItem,   Nav,   Navbar,   NavItem,   NavLink,   Popover,   PopoverBody, } from 'reactstrap'; import {   Form,   FormFeedback,   FormGroup,   FormText,   Input,   Label, } from "reactstrap"; B:::::::::::::::::::::   Define The State :::::::::...

search with first api and then change the frontend : guided by shikha

class Api::V1::ExamsController < Api::V1::ApiController   before_action :set_exam, only: [:show, :edit, :update, :destroy]   skip_before_action  :verify_authenticity_token   before_action  :teacher_authentication   eval(IO.read('doc/api_doc/exams/index.html'), binding)   def index     if params[:search].present?       byebug       # exams = Exam.where("LOWER(name) LIKE ?", "%#{params[:search].downcase}%")       exams = Exam.where("LOWER(name) LIKE ?", "%#{(params[:search]).downcase.downcase}%")     else       exams = current_user && current_user.superadmin_role? ? Exam.all : current_school.exams     end     @exams =  exams.paginate(:page => params[:page], :per_page => 10)     return render json: {status: 200, data: {exams: exam_as_json(exams: @exams), count: @exams.count}, message: "all exams list"}   end   ...

rspec project -vigoroom date 9 apr :: How to set up any Project in Rails

 git clone https://arvindkushwah9@bitbucket.org/proactive/ywroom.git note : project repository is required to set up the project initially Setup Project :: vigoroom : rspec for testing  step 01: bundle step 02: check the database after opening project in sublime at database.yml step 03: check the database in application.yml also step 04: made application.yml in config given by dhamendra in skype step 05: made database.yml in config given by dharmendra in skype step 06: rake db:create step 07: rake db:migrate step 08: change the username and password : root or postgress for mysql or postgress which is in your pc. step 09: Import the Database  : dharmendra send it at the skype and it will take approx an hour very big database. step 10: copy paste schema step 11:  rake db:schema:load step 12: migation was error in rake db:migrate mysql -u root -p ywroom_dev1 < /home/ mysql -u root -p ywroom_dev1 < /home/dwijendra/official_projects/vigoroom-rspec/ fittac_dev_09_...

react and rails search

 added code in the services  +    if (stu){ +        return fetch(`${BASE_URL}students?search=${JSON.stringify(stu)}`, requestOptions).then(handleResponse); +    } +    else{ +        return fetch(`${BASE_URL}students`, requestOptions).then(handleResponse); +    }  -function getAll() {  replace it with stu +function getAll(stu) { shikha check after debugger first that in which data is getting...

search -exam in skool app

 Step 01: hit the request at postman: Hit the API: localhost:3000//api/v1/exams?search=physics exams?search=value and hit the request at send in the postman and fix byebug in the index section and then test the code at byebug ,remove the byebug andget the results at the postman and get the request if okay and find then use this code also use this api in the service section and find the result at the postman also test this code which is of search code : test this code at the rails console Step 01: We use the code in the controller and hit the request by the postman and then we get the result at the postman. Step 02: Attach this API with the services in the Frontend

standard id ko kaise lenge

 iske liye join lagwana padheaga prashant and shikha ne pehle lagwaya bhi tha usko lagwao ab

imp : if ke sath koi command byebug lagakar nai chalta...jo command if ke sath attached hai usko chalana hota hai..

skool project mein current_user ki email dikhane ke liye.

 subtitle={JSON.parse(localStorage.user).user.email} 

How to apply Search feature

 Step 01:        this.state = {       student: {         first_name: "",       }, Step 02:        <FormGroup row>             <Col sm={5}>               <Input                 type="text"                 name="first_name"                 placeholder="Search Student With Name"                 value={student.first_name}                 onChange={this.handleChange}                 autoFocus               />               {submitted && !student.first_name && (           ...