Closed AndyLiang1 closed 11 months ago
I think you have to whitelist public IPs to connect to the Atlas cluster @AndyLiang1
Related to #28
@AndyLiang1 Can you also add instructions for local development without connecting to Atlas Cluster, incase we want to perform testing, local environment and data would be super useful so we dont nuke the "production" database
@AndyLiang1 Can you also add instructions for local development without connecting to Atlas Cluster, incase we want to perform testing, local environment and data would be super useful so we dont nuke the "production" database
Not actually sure how to do local development with Atlas... I will look into this soon
I think you have to whitelist public IPs to connect to the Atlas cluster @AndyLiang1
My thinking is just whoever uses it would whitelist their own IPs...I should add this to the read me
Created the Router -> Controller -> Model Pattern for User. This PR also contains code to connect to our mongoDB.
Router calls controllers and is responsible for only exposing the route. Controller contains business logic and accesses the DB. Controllers may also call other controllers. Models define the schema of a collection (think of a table in SQL).
To test this PR, you need a .env file in the server folder. See the secrets channel. In postman or google, put in http://localhost:5000/api/user to see the result.