Closed hiyaryan closed 10 months ago
Testing performed on server successfully connects to Atlas. Testing performed includes creating a new account, and writing a new entry. Then a login was attempted a second time with the same credentials successfully logging in again. Additionally, the database was inspected on Atlas with the recently added user data.
This PR adds code to setup the database in production. The MongoDB Atlas service will be used when NODE_ENV is production, otherwise, a local MongoDB will be used in development and testing.