₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,032 members, 8,448,280 topics. Date: Monday, 20 July 2026 at 06:56 AM

Toggle theme

Ovanda's Posts

Nairaland ForumOvanda's ProfileOvanda's Posts

1 2 3 4 5 6 (of 6 pages)

ProgrammingI Am Searching For An Unpaid Internship Position by ovanda(op): 10:50am On Aug 17, 2024
Dear esteemed members of Nairaland Programming section,

I hope this message finds you well. As a dedicated and passionate PERN (PostgreSQL, Express, React, Node.js) stack developer, I've been an avid follower of this community for years. The wealth of knowledge, expertise, and camaraderie shared here has been instrumental in my growth and learning journey.

With a strong foundation in PERN stack development and a keen interest in full-stack development, I'm eager to take my skills to the next level. However, I recognize the importance of real-world experience in bridging the gap between theoretical knowledge and practical application.

This is where I humbly request your consideration for an unpaid internship within your esteemed organization. I understand the value of your time and expertise, and I'm willing to contribute my skills and dedication without expectation of compensation.

Through this internship, I hope to:

- Gain hands-on experience in full-stack development with a focus on PERN stack
- Collaborate with experienced professionals and learn from their expertise
- Contribute to meaningful projects and make a tangible impact
- Enhance my problem-solving skills and adaptability in real-world scenarios

In return, I offer:

- Diligence, enthusiasm, and a willingness to learn
- Strong work ethic and commitment to delivering quality results
- Fresh perspectives and innovative ideas
- Proficiency in PERN stack development, with a passion for building scalable and efficient applications

I believe this opportunity would not only benefit me but also bring value to your organization. I'm confident that my dedication and eagerness to learn would make me a valuable asset to your team.

Thank you for considering my appeal. I look forward to the opportunity to discuss this further and explore how I can contribute to your organization.

Sincerely,

Victor
ProgrammingRe: We Are Recruiting Founding Team Members For Our Upcoming Startup! by ovanda(m): 9:45pm On Aug 11, 2024
Full Stack intermediate 08035442507
PoliticsRe: Protest: Regina Daniels To Those Who Attacked Her For Speaking Against Violence by ovanda(m): 4:07pm On Aug 07, 2024
Idiot,I blame you.
ProgrammingRe: Finally Got A Tech Job by ovanda(m): 11:01am On Aug 04, 2024
DDayve:
niel63 and others who gave a constructive criticism when I posted my portfolio project here, I want to specially thank you.

After several failures and trials, I finally got a tech job as a front-end web developer.

I have been on my graduate job for 8yrs now but my first tech job which is remote pays me more. Funny enough, I still do both. My onsite job is presently not stressful, so I write code while at work using company power.

My advice to newbies, the road is not rosy but there is definitely gonna be light at the end of the road if you persist.
Bro abeg let's connect. I just need directions from you and I promise I won't disturb you. I just need to ask questions on Whatsapp from time to time. Answer at your leisure. Abeg? Here's my WhatsApp number 05835442507
TravelRe: Dv 2009 Lottery Result Now Out ! by ovanda(m): 7:05pm On Jul 22, 2024
Is this still ongoing??
ProgrammingRe: Let's Learn Together by ovanda(m): 4:21pm On Jul 22, 2024
Shomek:
Done with javascript since.
Am currently learning java.
I just want to play with react
Guy na JavaScript you de refer to dismissively so? You build projects??
ProgrammingRe: Let's Learn Together by ovanda(m): 8:34pm On Jul 21, 2024
Shomek:
in
It will be good for me to learn react
for fun
React is all about JavaScript. You need to be grounded in JavaScript before you start with React.
ProgrammingRe: Let's Learn Together by ovanda(m): 4:14pm On Jul 21, 2024
wittywriter:
Saw your nairaland mail request and I'm curious to know how what informed it or how we can be of help to each other.
Kindly reply aptly.

Ok ...drop your WhatsApp and delete afterwards.... you'll be reached with the details of joining a writing gig earners group where $50 monthly is the earning benchmark.
Irrespective of your career type or profession you can earn been a writer or a facilitating writer.



Wittyness
Bro, I'm interested in this. I can write. Here's my WhatsApp line 08035442507
FamilyRe: My Wife Insisting That Her Pastor Must officiate our child naming ceremony. by ovanda(m): 8:24pm On Jul 18, 2024
BlindAngel:
Good afternoon Nairalanders, my wife gave birth last week which was Saturday July 13th, that day was also my birthday, she gave birth through CS, this is our first child, and it's a boy.


This week Saturday is our baby's naming ceremony but my wife is insisting that her pastor must be the one officiate the naming the child, we've been disagreeing over this for some couple of days now,

she has called me all sorts of names, insulted me that I'm a very wicked man that I have no conscience, that after she pain and tearing she went through and still going through, I can't make this as a sacrifice for her, that I choose my family over her. She said so because my family also insist too that the naming must be done by our pastor.

But she's keying on the fact that she won't agree for the naming to be done in my church that it must be done by her pastor, she has cried and insulted me regarding this. Yesterday when we were arguing about this same particular issue she starting crying endlessly and calling me a wicked man.

I have finally agreed for her to use her pastor to do the naming, although I don't know her pastor and haven't seen him before, but I only agreed because of the CS operation she did while giving birth, her endless crying might affect her, if not there's absolutely no way possible I'd have agreed.

I must say that she doesn't know the repercussions of what sha has done by challenging my authority and always wanting to have her way with tears all the time. But time sha tell, I'm in so much rage right now, and I'm trying my possible best to control myself and not to loose my anger over this.
A simp spotted!!!
ProgrammingRe: Created And Deployed My First Express Js Website. by ovanda(m): 8:20am On Jun 24, 2024
You're welcome[/quote]Bros I don get am, finally and it's working like a beauty!!

There should be two tables(eg, sessions and users) in one database (e.g., `mydb`).

1. `sessions` - used to store session data
2. `users` - used to store user data

Both tables are stored in the same database, but they serve different purposes. The `sessions` table is used by the `express-session` middleware to store session data, while the `users` table is used to store user data for the CRUD operations.

Having separate tables for sessions and users is a common practice, as it allows you to manage and query the data independently. This also helps to keep the data organized and scalable, especially in larger applications.

Here's a high-level overview of how to use sessions and PostgreSQL in an Express CRUD application:

*Sessions:*

1. Install `express-session` and `pg` packages:
```
npm install express-session pg
```
1. Set up session middleware:
```
const session = require('express-session');
const pgSession = require('connect-pg-simple')(session);

app.use(session({
store: new pgSession({
pool: new pg.Pool(/* your PostgreSQL connection settings */),
tableName: 'sessions'
}),
secret: 'your_secret_key',
resave: false,
saveUninitialized: false,
cookie: { secure: true }
}));
```
*PostgreSQL:*

1. Install `pg` package:
```
npm install pg
```
1. Create a PostgreSQL pool:
```
const { Pool } = require('pg');

const pool = new Pool({
user: 'your_username',
host: 'your_host',
database: 'your_database',
password: 'your_password',
port: 5432
});
```
*CRUD Operations:*

1. Create a router for your CRUD endpoints:
```
const router = express.Router();
```
1. Define CRUD operations using the pool and session:
```
router.get('/users', async (req, res) => {
const result = await pool.query('SELECT * FROM users');
req.session.users = result.rows;
res.send(req.session.users);
});

router.post('/users', async (req, res) => {
const { name, email } = req.body;
const result = await pool.query('INSERT INTO users (name, email) VALUES ($1, $2) RETURNING *', [name, email]);
req.session.user = result.rows[0];
res.send(req.session.user);
});

// ...
```
ProgrammingRe: Created And Deployed My First Express Js Website. by ovanda(m): 3:40pm On Jun 21, 2024
downbad:
I'm sorry about that, my Whatsapp is for people I know personally.

Do you use Discord?

Edit: I've never used PostgreSQL. I used MongoDB for this project.
In essence, you no know, you no fit help. Thanks though.
ProgrammingRe: Created And Deployed My First Express Js Website. by ovanda(m): 1:27pm On Jun 20, 2024
ovanda:
Bros abeg, here's my line, I'd like to get in touch with you
08035442507
Bro,I had wanted to get in touch with you because, being a PERN stack developer,I had a question I would have liked to get clarity on but as you no wan respond make I ask the question here.

It's about authentication with session. You can store session in a mongoose database using the code below:

const MongoStore = require('connect-mongo')(session)

app.use(session(
secret: 'SECRET KEY',
resave: false,
saveUninitialized: true,
store: new MongoStore({
url: 'mongodb://localhost:27017/test-app', //YOUR MONGODB URL
ttl: 14 * 24 * 60 * 60,
autoRemove: 'native'
})
))

Or something similar. You don't need to create tables where it is stored as is the case with Postgresql.

To store a session in a postgresql, the code below is needed:

import genFunc from 'connect-pg-simple';

const PostgresqlStore = genFunc(session);
const sessionStore = new PostgresqlStore({
conString: '<insert-connection-string-here>',
}

app.use(session({
secret: 'secret',
resave: false,
saveUninitialized: false,
cookie: cookieOptions, // define cookieOptions
store: sessionStore
}));

I was able to successfully store a session inside a postgresql, using the code above.

In Setting Up the Database

First, I created a database called express-store-test (the name of the database doesn’t really matter).

Then I added a table called session — express will automatically look for this table for finding the session data. This table has 3 columns, which are:


sid is the session id — this is what cookies reference.
sess: contains the session as a JSON object
expire: contains the expiration timestamp for the current session

My question is this?

Assuming I am developing a crud application, would it have a new database with a different name or is there a way to build on the one I created for session?

If I have to create a new database for my crud application, how do i Link it up with the one for session?
ProgrammingRe: Created And Deployed My First Express Js Website. by ovanda(m): 6:39pm On Jun 15, 2024
Bros abeg, here's my line, I'd like to get in touch with you
08035442507
ProgrammingRe: Created And Deployed My First Express Js Website. by ovanda(m): 6:34pm On Jun 15, 2024
This is just beautiful! Bro i am learning PERN stack and I intend to develop a crud application soon. Abeg, how did you implement that next button at the very end of the website?
ProgrammingRe: Please People I Need A Mentor by ovanda(op): 3:46am On May 12, 2024
Please can I have your email address?
ProgrammingPlease People I Need A Mentor by ovanda(op): 7:42pm On May 05, 2024
Good day everyone. My name is Victor and I need a mentor. I know I am good in programming but i keep going around in circles. I learned java and spring framework and could write meaningful program with it. Then someone pointed to PERN stack.i am through with react and all the JavaScript basics, though I know JavaScript to a good extent. I'm done with express js and I am tackling nodes js right now. I want to continue with this stack. The thing here is that I can learn any programming language fast and surmount any challenges as long as I have Google,lol. Please and please, just point me in the right direction,abeg. Thank you.
ProgrammingRe: I Finally Got A Job. Haters Should Bury Their Heads In Shame. by ovanda(m): 12:26pm On Apr 03, 2024
Devdevdev please and please, i sent you a mail, respond.
TravelRe: Japa!! Which Country Can I Travel To With 8 Million Naira?? by ovanda(m): 12:42pm On Feb 14, 2024
anslemarinze52:
I am an agent sir, I can help you with a better country, you won't spend up to 7m.
Na dem.
ProgrammingRe: Work Trials In Tech Companies Abroad by ovanda(m): 9:56am On Feb 08, 2024
I am interested in this. I am still learning pern stack but i am very good with Java j2se
ProgrammingRe: Are You A Java Expert? Indicate Here And Never Go Broke Ever Again by ovanda(m): 6:14pm On Feb 01, 2024
I know Java. You can reach me on WhatsApp 08035442507
ProgrammingRe: I Just Started My Web Development Company Without Any Experience by ovanda(m): 5:32pm On Dec 22, 2023
I am good with Java 2se. 08035442507
ProgrammingRe: Why You Need To Code 2 To 5 Hours Daily by ovanda(m): 2:47pm On Dec 02, 2023
On point.
ProgrammingRe: I Just Learn A New Thing About Learning Programming Today . by ovanda(m): 2:45pm On Dec 01, 2023
Englishisamust:
If you buy a tv, you will see a manual that will guide you to use the tv, the same applies to programming.. documentation is just softcopy of the manual to guide u on the programming language you are learning grin

Hope you are clear!!!
Thank you very much. I am clear.
ProgrammingRe: I Just Learn A New Thing About Learning Programming Today . by ovanda(m): 4:30pm On Nov 18, 2023
Please seniors, pardon my ignorance. I keep hearing people saying they use documentation. What is documentation and how is it used?
ProgrammingRe: Learn Full-stack Web Development In 7 Days Ebook by ovanda(m): 7:56pm On Sep 07, 2023
Its getting to one year now and I've not finished the full stack web development course i bought at codecademy and someone here is talking about 7 days. Does this individual actually know what a full stack web development is?? I guess not.
EducationRe: Mention That Topic In Mathematics, That You Still Do Not Understand. by ovanda(m): 5:30pm On Sep 05, 2023
AllenSpencer:
Laplace transformation
This and circle theorem
ProgrammingRe: I Can't Code Off My Head. I'm I The Only One by ovanda(m): 12:09pm On Aug 15, 2023
Guy nobody can write any meaningful code off head. I have 🐝 coding for years but you'd be surprised that sometimes i still go back to my text books to understand again something that is as simple as if else statement.
Foreign AffairsRe: Rhissa Ag Boula Launches Anti-coup Movement In First Sign Of Internal Resistance by ovanda(m): 2:42pm On Aug 12, 2023
To all of you supporting the so called anti coup movement, can't you see what france is doinghuh Was it not reported the other day that France released terrorists they have been detaining in Niger?? Again, to the anti coup movement supporters, have you asked yourself why these terrorists were released?? It was reported some days back that France violeted Niger's Air space. Can they do that to any European country? Niger has severed ties with France and asked them to go yet they refused, why? Make Una the reason oh!!
ProgrammingRe: The New Germany Opportunity Card? by ovanda(m): 9:23pm On Aug 08, 2023
U am interested too
RomanceRe: Can You Remember Your First Love? by ovanda(m): 1:50pm On Aug 06, 2023
Amarachi, a beautiful girl i fell in love with in 2006. I am married with a child but i still love that girl till this day.

1 2 3 4 5 6 (of 6 pages)