TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Sujay
Get all TODO comments in rails application using rails notes
Published
Author
user-image
Rishav Raj
System Analyst


1. Learned how to use the slack api.
2. Learned how to send message on user command through the slack bot.
3. Learned how to setup and use incoming web hook for slack bot.
4. Learned How to post message in channel using the incoming web hook.
5. Learned how to do post req using the axios.
Published
Author
user-image
Rishav Raj
System Analyst


1. Learned how to make slack bot.
2. Learned how to use slack bot.
3. Learned how to add slack bot to the workspace and channel .
4. Learned how to use brew
5. Learned how to use ngrok and redirect the local host port to the ngrok url.
Published
Author
user-image
Rishav Raj
System Analyst
1. i learned how to do filtering and sorting with the api by passing params.
2. i learned how to write test cases for the components like filtering and sorting.
3. i learned how to mock api using the jest.
Published
Author
user-image
Rishav Raj
System Analyst
1.Tomorrow, I learnt how to utilise a single component to prevent code repetition and use that component in every component to prevent code repetition,
2. To make the API scalable, we need to create various methods to call it if I had many end points.
Published
Author
user-image
Keshav Chakravarthy
You can use cloudflared to expose apps running on localhost using a dedicated domain, and HTTPS
• For hosting using a random URL just run cloudflared tunnel --url http://localhost:
• For an owned domain, there are a bunch more steps.
◦ Prerequisites:
▪︎ You need a domain name that you own. Can buy one for an year for <200 Rs
▪︎ Create a Cloudflare account. You will be asked to login to dash.cloudflare.com
▪︎ Follow the instructions including the installation instructions in https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local
Published
Author
user-image
Keshav Chakravarthy
Published
Author
user-image
Ashwani Kumar Jha
Senior System Analyst
TypeScript Pick utility allows us to create a new type by picking a subset of properties from an existing type. Instead of duplicating field declarations we can use Pick utility to extract new types.


Code

type AdminUser = {
  id: number;
  name: string;
  email: string;
  phone: string;
  password: string;
  age: number;
  isAdmin:  boolean;
  ...
}



Code

type BasicUser = Pick;


Published
Author
user-image
Rishav Raj
System Analyst
today i learned how to use storybook in next js with typescript and i also build some story of the components and today i learn how next js work and i also fetch api data in next js with the typescript and i also write the test cases in next js by using the react testing library and jest and i learned how to write testcases in react js with the help of typescript

Showing 45 to 47 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals