playground-for-node icon indicating copy to clipboard operation
playground-for-node copied to clipboard

Use environment variables for API KEY and PROJECT ID

Open avinashupadhya99 opened this issue 3 years ago • 5 comments

Using environment variables for API KEY and PROJECT ID makes it not secure but also makes it easy for people wanting to try out this project. There can be a .env.example file which has empty values for the environment variables. The person setting up the project can just cp .env.example .env and fill in the appropriate values.

avinashupadhya99 avatar Oct 05 '21 07:10 avinashupadhya99

I think we should add an example.env file with empty values I would like to help

harshmathurx avatar Oct 05 '21 07:10 harshmathurx

@avinashupadhya99 can you please explain this issue.Like i have used the .env file in my projects. About .env.example can you explain in detail please ?

tejasborde avatar Oct 14 '21 10:10 tejasborde

The .env.example file is an example .env file that would contain all the names of the environment variables necessary for .env. Here's an example -

APPWRITE_ENDPOINT=
APPWRITE_PROJECT_ID=
APPWRITE_API_KEY=

This is used as a reference to creating the .env since the .env file will not be commited to the repo.

avinashupadhya99 avatar Oct 15 '21 08:10 avinashupadhya99

I would like to help out with this issue. Can you assign it to me?

MSVelan avatar Oct 26 '22 05:10 MSVelan

@avinashupadhya99 Can you Please assign me this issue? I will do that.

nikhilbuts avatar Oct 26 '22 11:10 nikhilbuts