-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CHE-193] Create and Seed Mongo Container for Dev #145
[CHE-193] Create and Seed Mongo Container for Dev #145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the scripts here @seantokuzo - nice work! 🎉
❔ We can continue the conversation about this outside this ticket but a 37k line file leaves me uneasy lol...
🛑 Need to add our three core testing accounts listed in the readme to our seeder data and attribute some of the threads and posts to them
🛑 When I spin things up as per the instructions none of the image pulls work. Attaching some ss's. Is there a way to get your stock images to show up in dev mode when the S3 credentials have been disabled?
image: codehammers/ch-dev-dep-v3:latest | ||
container_name: ch-dev | ||
ports: | ||
- '8080:8080' | ||
- '3000:3000' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
[ | ||
{ | ||
"firstName": "Testy", | ||
"lastName": "McTesterson", | ||
"email": "[email protected]", | ||
"profilePic": "https://www.codesmith.io/hubfs/Screen%20Shot%202024-06-10%20at%2010.46.24%20AM.png", | ||
"password": "$2a$10$LGAtDH0sMsL39sZxWRN8r.X.//5/XBIirtADsSg9VLUciCxXhmtF.", | ||
"_id": { | ||
"$oid": "666cbc4240af7b375e352e8c" | ||
}, | ||
"lastVisit": { | ||
"$date": "2024-06-14T21:55:14.814Z" | ||
}, | ||
"date": { | ||
"$date": "2024-06-14T21:55:14.814Z" | ||
}, | ||
"__v": 0 | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @seantokuzo - Nice to see the site has so many active users! While Testy McTesterson seems like a huge asset to the team, can we add a few teammates for them? Specifically, let's add [email protected], [email protected], and jaime@ codehammers.com. They're all great friends so don't mind sharing the same "ilovetesting" password.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @seantokuzo - Solid workaround to display stock images in dev mode! The user is still able to attempt an upload of a new image in EditProfile. This ends up breaking the display and we also get some S3 connection errors in the terminal as expected with fake credentials.
…to CHE-193/subtask/Create-and-Seed-Mongo-Container-for-Dev
…' of https://github.com/Code-Hammers/code-hammers into CHE-193/subtask/Create-and-Seed-Mongo-Container-for-Dev
…to CHE-193/subtask/Create-and-Seed-Mongo-Container-for-Dev
…' of https://github.com/Code-Hammers/code-hammers into CHE-193/subtask/Create-and-Seed-Mongo-Container-for-Dev
Description
As part of the General Improvements story this PR aims to enhance the Codehammers™ developer experience. What it do?
docker-compose-dev
- this service creates an instance of MongoDB running in a docker container usable by our application in development.env
fileJira Task
JIRA TICKET
Testing Instructions
npm run docker-remove-all
to remove existing containers/images/volumesnpm run docker-build-check
to check linting and unit tests still passnpm run docker-dev
[email protected]
, password =ilovetesting
For fun
docker exec -it ch-mongo-dev mongosh -u admin -p adminpassword
- this will allow you to run commands withmongosh
inside of the docker containeruse ch-testdb
to switch to our development databasedb.users.find()
- this should return all of our mock users that have been seeded into the development databasedb.<collection_name>.find()
) - our collection names are:users
,alumnis
,graduateinvitations
,profiles
,forums
,threads
,posts
db.users.find({email: "[email protected]"})
Checklist
All Team Members
npm run docker-test
in my local environment to check that this PR passes all unit tests.