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

Development server #52

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

ubesluttsom
Copy link

@ubesluttsom ubesluttsom commented Sep 26, 2024

This will add the possibility of running a development server using Docker containers. At the project root folder, you can do a simple docker-compose up to build and run a frontend and database locally. No other dependencies required except for Docker and docker-compose. Not even Node.

The database is initialised with anonymised data. All users will have random Norwegian names and emails. This will address #45.

NB! The database is not fully-featured yet. Only the User table is supported.

See the `README.md` added by the commit.

Only the `User` table is currently supported.

Structure could be changed. Not sure if keeping this in a separate
folder like this is the right choice. Moving the `docker-compose.yml` up
in the directory hierarchy could make sense.
Also, move and modify the `dev-database` `docker-compose.yml` to run the
frontend in addition to the database. This means you can do a simple
`docker-compose up` in the project root directory to run a local
development system.

NB! Database tables other than `User` is not yet supported. This means
the frontend *will* crash if it tries interact with the other tables,
such as `UserMembership`.
@ubesluttsom ubesluttsom added the enhancement New feature or request label Sep 26, 2024
@ubesluttsom ubesluttsom changed the title Feature: development server Development server Sep 26, 2024
@EricSvebakk
Copy link
Member

Please move this pull-request to the development-branch.

@ubesluttsom ubesluttsom changed the base branch from main to development September 26, 2024 14:43
@ubesluttsom
Copy link
Author

Done.

@ubesluttsom ubesluttsom removed the enhancement New feature or request label Sep 27, 2024
@EricSvebakk EricSvebakk linked an issue Sep 27, 2024 that may be closed by this pull request
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.

Dev dummy data
2 participants