codemzy / mern-auth

Full stack auth with Node, Express, Mongo and React using JWT
7 stars 2 forks source link

npm start error #1

Closed Jbonez87 closed 7 years ago

Jbonez87 commented 7 years ago

Please provide start up documentation and proper configuration instructions to load this. Created a private folder and a .env file that pointed to a port and it would not register the port's existence.

codemzy commented 7 years ago

Hey, the private directory needs to be outside the project directory... so structure should be something like...

So completely outside the the project directory (up another level from the server folder). Then put your .env file inside the private folder, and the server.js config should pick it up. You also need to defined the database process.env.MONGO_URL in the .env file.

codemzy commented 7 years ago

Added get started instructions to README in commit 1aeac267c1627db3a2caa719e6acccb857ffae54

Jbonez87 commented 7 years ago

Thank you! Your code is awesome btw

On Thu, Nov 24, 2016 at 9:14 AM, Codemzy notifications@github.com wrote:

Closed #1 https://github.com/codemzy/mern-auth/issues/1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/codemzy/mern-auth/issues/1#event-871150013, or mute the thread https://github.com/notifications/unsubscribe-auth/ARmRzZtfyUArjFa2vRTXE8MpO-Hb1qaZks5rBZuvgaJpZM4K5_2l .