Home / Groups

You can install a .deb file on Ubuntu using the dpkg or apt command. Here's how: Using dpkg: Open a terminal window and navigate to the directory containing the .deb file. Run the command sudo dpkg -i filename.deb, replacing filename.deb with the actual name of the .deb file.

When you are going to install MySql in your ubuntu (Linux machine) 

First Step:

run command sudo apt install mysql-server

this command will install mysql-server your machine. After successful installation. Type

sudo mysql -u root

This will allow to login into mysql without entering password. now set the password for root user.

Now set password for user ‘root’ 

alter user root@localhost identified by ‘Pass@123’;

this will set the password for user root@localhost.

now you can sign out by typing exit. and again login with root user and password. 

sudo mysql -u root -p 

You can run any command like show databases;

In view of speed between windows and Linux. I checked it in my pc. Linux is performing very well. 

Although windows is easy for use. Linux is little bit hard as most of the tasks are performed by commands. 

To create endpoint in your json-server for your angular application 

just edit your db.json file

{

   “posts”:{},

    “users”:{}

}

 

Your endpoints are live now on 

http://localhost:3000/posts [GET, POST, PUT, DELETE]

http://localhost:3000/users [GET, POST, PUT, DELETE]

hope it helped you.

to install json-server in angular application 

run npm install json-server

now create one file db.json in your root folder of your application.

to start json-server npx json-server db.json

your json server is live now on http://localhost:3000 port

To map the query params with angular routes. Follow the below doc

in angular 17, app.routes.ts 

{path:'posts/category/:catId', component:PostByCategoryComponent}

 

now in PostByCategoryComponent 

import {ActivatedRoute} from ‘@angular/router’;

export class PostByCategoryComponent {

 constructor(private router:ActivatedRoute){}

 ngOnInit(){
   this.router.params.subscribe(res=>{
     console.log(res);
     
   });
   
 }

}

 

this will show in console like 

{catId:2}

thanks and share your experience on angular here….

Groups

4 Members joined | Created By: Shyam Dubey
5 Members joined | Created By: Shyam Dubey
7 Members joined | Created By: Shyam Dubey
6 Members joined | Created By: Shyam Dubey
5 Members joined | Created By: Shyam Dubey
5 Members joined | Created By: Shyam Dubey
7 Members joined | Created By: Shyam Dubey
7 Members joined | Created By: Deepak Sahoo
7 Members joined | Created By: Java
8 Members joined | Created By: Vijay Sangwan
14 Members joined | Created By: Nisha Gupta
30 Members joined | Created By: Priyanka Tomar
43 Members joined | Created By: Harikesh
45 Members joined | Created By: Chandan Das
47 Members joined | Created By: Geetam
49 Members joined | Created By: Kanak Sharma
48 Members joined | Created By: Ruchi Sharma
46 Members joined | Created By: Shyam Dubey
51 Members joined | Created By: Kanak Sharma
67 Members joined | Created By: Vishal Gupta

You need an account to perform this action. Click on Continue with google for single tap login or create an account.


Create an account | Already have account? Login