Skip to content
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

Update README with how to setup local enviroment for development #149

Conversation

JarneVanAerde
Copy link
Collaborator

No description provided.

README.md Outdated
```
3. Make sure to also use that username and password inside of the `.env` file:
`DATABASE_URL="postgresql://jarne:dummyusr@dummypw/tech-survey`
4. Run the following commands to setup your db locally. For the `npm run db:seed` command you need a CSV file to populate the database. You can ask your co-worker for this CSV file, or skip this if you don't want any data.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Het is hiernaast ook belangrjik dat de CSV in de import map zit

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted!

README.md Outdated
npm run db:push
npm run db:seed
```
5. Now you should be ready to go! 🎉 You can check your local database by opening the studio of Primsa:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventueel zou je nu kunnen noemen dat je de vragen en groepen zou moeten kunnen zien. Dit is meteen een check of het seeden goed is gegaan.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted!

```bash
npm run db:generate
npm run db:push
npm run db:seed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Het is belangrijk dat iemand niet meerdere keren db:seed aanroepen, omdat er geen checks zijn of de data er al in zit. In dit geval moet je de hele database legen.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted!

README.md Outdated
docker run --name tech-survey -e "POSTGRES_USER=dummyusr" -e "POSTGRES_PASSWORD=dummypw" -e "POSTGRES_DB=tech-survey" -d -p 5432:5432 docker.io/postgres
```
3. Make sure to also use that username and password inside of the `.env` file:
`DATABASE_URL="postgresql://jarne:dummyusr@dummypw/tech-survey`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, it's a good idea not to include your name in the (demo) source code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, that was not the intention, adjusted!

@JarneVanAerde JarneVanAerde merged commit 77d6de0 into infosupport:main Oct 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants