entel-me / entel

A platform to share your needs
https://entel.me
GNU General Public License v2.0
8 stars 4 forks source link

Initial DB Issues #53

Closed malckier closed 3 years ago

malckier commented 3 years ago

Thanks for your time.

antonykamp commented 3 years ago

Hey malckier,

That's a good point! Thank you! We should mention in README.md how to set up the project. Because we use blitzjs you have to prepare some things, like setting up environment variables in .env.local and .env.test.local (the missing DATABASE_URL) and migrating the database. I'll add this tomorrow and reach out!

antonykamp commented 3 years ago

I've added some instructions to README.md :) While the PR isn't closed, you can find the guide here:

https://github.com/antonykamp/entel/blob/readme-setup-instructions/README.md

Feedback is welcome :)

malckier commented 3 years ago

That helped in getting things running! I added the DATABASE & MAIL settings in .env.local and .env.test.local. This allowed me to log in and create a couple of lists.

You state "Afterward, you call them with process.env.." I'm not sure what is meant by this.

I'm just curious about the mail variables. Is this for filler or does the privateemail.com have an smtp service that you're using?

antonykamp commented 3 years ago

You state "Afterward, you call them with process.env.." I'm not sure what is meant by this.

In typescript, you can access environment variables with process.env.. Let's take the forgotPasswordMailer.tsx as an example: You specify your email address in .env.local with

MAIL_MAIL=malckier@malckier.com

and now you can access this variable with process.env.MAIL_MAIL :)

I'm just curious about the mail variables.

mail.privateemail.com is the SMTP service of namecheap mails :D And nodemailer needs the server name, mail, and password only to send mails :)