This repository was archived by the owner on Oct 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
dockerized the frontend and made a compose file #18
Open
DavidZhu1388
wants to merge
3
commits into
main
Choose a base branch
from
DockerizeReadMei
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # ReadMei | ||
|
|
||
| ReadMei is a membership and registration assistance system still in development (development started last year by the previous team). The system currently works on a base of React and Bootstrap CSS, and MongoDB(?) . This will primarily be an effort to streamline event registration, and will require additional coordination with the UBCAni Treasurer for integration with Square sales and membership details. The intention is for this system to eventually integrate with the UBCAni website to offer members information about their attendance, participation, and other involvement with the club! | ||
|
|
||
| <!-- ## Table of Contents | ||
|
|
||
| - [Installation](#installation) | ||
| - [Usage](#usage) | ||
| - [Contributing](#contributing) | ||
| - [License](#license) --> | ||
|
|
||
| ## Usage | ||
|
|
||
| Examples of how to use the project. | ||
|
|
||
| ```bash | ||
| # run this in the root folder | ||
| docker compose up -d | ||
| ``` | ||
|
|
||
| ## Contributing | ||
|
|
||
| Guidelines for contributing to the project. | ||
|
|
||
| 1. Fork the repository(or clone if you are a contributor). | ||
| 2. Create a new branch (`git checkout -b feature-branch`). | ||
| 3. Make your changes. | ||
| 4. Commit your changes (`git commit -m 'Add some feature'`). | ||
| 5. Push to the branch (`git push origin feature-branch`). | ||
| 6. Open a pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| services: | ||
| frontend: | ||
| build: | ||
| context: ./frontend | ||
| dockerfile: Dockerfile | ||
| ports: | ||
| - "5173:5173" | ||
| volumes: | ||
| - ./frontend:/app # Mounts your project folder without node_modules | ||
| - /app/node_modules # Ensures node_modules in container is used | ||
| environment: | ||
| - NODE_ENV=development | ||
| - VITE_HOST=0.0.0.0 # Add this line to allow access from outside the container | ||
| command: npm run dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Use an official Node.js runtime as a parent image | ||
| FROM node:18-alpine | ||
|
|
||
| # Set the working directory inside the container | ||
| WORKDIR /app | ||
|
|
||
| # Copy package.json and package-lock.json | ||
| COPY package*.json ./ | ||
|
|
||
| # Install dependencies in the container (without copying local node_modules) | ||
| RUN npm install | ||
|
|
||
| # Copy the rest of the frontend code into the container | ||
| COPY . . | ||
|
|
||
| # Expose Vite's default port | ||
| EXPOSE 5173 | ||
|
|
||
| # Command to run the Vite development server | ||
| CMD ["npm", "run", "dev"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
the id and date weren't used so it would give an error when run