You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,12 @@ During the initial setup, a persistent issue was encountered where running `arti
32
32
33
33
The test for the `ote:export-ote-file` command is brittle. The test's `expectsOutput` assertion fails when the command's success message is built using variables, even though the variables appear correct. To make the test pass, the success message in the `ExportOteFile` command has been hardcoded. This is a workaround, and the underlying issue with the test runner's output capturing has not been resolved.
34
34
35
+
### Laravel Dusk Integration
36
+
37
+
There are persistent issues with running Laravel Dusk in the development environment. The test runner (Pest) seems to have a conflict with how Dusk's test cases are discovered, and there are also issues with the ChromeDriver and Chrome binary setup.
38
+
39
+
After multiple attempts to fix these issues, the integration of Dusk has been abandoned for now.
# Contributing to Open Translation Engine (OTE) v2
2
2
3
-
Thank you for considering contributing to the Open Translation Engine v2 project! We welcome all contributions, from bug reports and feature requests to code contributions.
3
+
First off, thank you for considering contributing to OTE v2. It's people like you that make open source such a great community.
4
4
5
-
## Why Contribute?
5
+
## How Can I Contribute?
6
6
7
-
OTE is a community-driven project. By contributing, you can help us build a better, more robust, and more user-friendly translation engine. Your contributions will benefit users and developers all over the world.
7
+
### Reporting Bugs
8
8
9
-
## How to Contribute
9
+
If you find a bug, please open an issue on our [GitHub Issues](https://github.com/attogram/ote/issues) page. Please include as much detail as possible, including:
10
+
- A clear and descriptive title.
11
+
- A description of the problem.
12
+
- Steps to reproduce the bug.
13
+
- Any relevant screenshots or error messages.
10
14
11
-
### Reporting Bugs and Requesting Features
15
+
### Suggesting Enhancements
12
16
13
-
If you find a bug or have an idea for a new feature, please open an issue on our [GitHub repository](https://github.com/attogram/ote/issues).
17
+
If you have an idea for a new feature or an enhancement to an existing one, please open an issue on our [GitHub Issues](https://github.com/attogram/ote/issues) page. Please provide a clear and detailed explanation of the feature you're suggesting and why it would be valuable.
14
18
15
-
### Code Contributions
19
+
### Your First Code Contribution
16
20
17
-
If you would like to contribute code, please follow these steps:
21
+
Unsure where to begin contributing to OTE v2? You can start by looking through the `good-first-issue` and `help-wanted` issues.
18
22
19
-
1.**Fork the repository** and create your branch from `master`.
20
-
2.**Set up your development environment** by following the instructions in `docs/jules.md`.
21
-
3.**Make your changes** and write tests for them.
22
-
4.**Ensure the tests pass** (if you are able to run them).
23
-
5.**Create a pull request** with a clear description of your changes.
23
+
## Development Workflow
24
24
25
-
If you are making changes to the deployment configuration, please refer to the [Render Deployment Guide](docs/RENDER.md) for more information on the setup.
25
+
1.**Fork the repository** on GitHub.
26
+
2.**Clone your fork** to your local machine.
27
+
3.**Create a new branch** for your changes: `git checkout -b your-branch-name`.
28
+
4.**Make your changes.**
29
+
5.**Run the tests** to make sure everything is still working: `composer test`.
30
+
6.**Run the code formatter** to ensure your code follows our style guide: `composer format`.
31
+
7.**Run the static analyzer** to check for potential bugs: `composer analyse`.
32
+
8.**Commit your changes** with a clear and descriptive commit message.
33
+
9.**Push your changes** to your fork: `git push origin your-branch-name`.
34
+
10.**Open a pull request** to the `master` branch of the main repository.
26
35
27
-
### Working with the OTE MVP
36
+
##Coding Standards
28
37
29
-
The OTE MVP is built with Laravel. Here are some key things to know when working with the codebase:
38
+
This project uses [Laravel Pint](https://laravel.com/docs/pint) to enforce a consistent coding style. Before you commit your changes, please run the code formatter:
30
39
31
-
***Models:** The Eloquent models are located in `app/Models`.
32
-
***Views:** The Blade views are located in `resources/views`.
33
-
***Controllers:** The HTTP controllers are located in `app/Http/Controllers`.
34
-
***CLI Commands:** The Artisan commands are located in `app/Console/Commands`.
35
-
***Routes:** The web routes are defined in `routes/web.php`.
36
-
***Tests:** The tests are located in the `tests` directory.
40
+
```bash
41
+
composer format
42
+
```
37
43
38
-
When adding new features, please try to follow the existing code style and structure.
44
+
## Running Tests
39
45
40
-
Thank you for your contributions!
46
+
This project uses [Pest](https://pestphp.com/) for testing. To run the test suite, use the following command:
47
+
48
+
```bash
49
+
composer test
50
+
```
51
+
52
+
## Static Analysis
53
+
54
+
This project uses [PHPStan](https://phpstan.org/) with the [Larastan](https://github.com/larastan/larastan) extension for static analysis. To run the static analyzer, use the following command:
Copy file name to clipboardExpand all lines: README.md
+70-48Lines changed: 70 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,16 @@ To get started with the development of OTE v2, you will need to have PHP and Com
36
36
37
37
For information on how to run the test suite, please see the [Testing Documentation](tests/README.md).
38
38
39
+
### Git Hooks
40
+
41
+
This project includes a pre-commit hook that runs `pint` and `phpstan` to ensure code quality before each commit. To use it, you need to create a symbolic link from `.git/hooks/pre-commit` to the script.
42
+
43
+
From the root of the project, run the following command:
This project is configured for automated deployment on [Render](https://render.com/). For detailed instructions on how to deploy your own instance, please see the [Render Deployment Guide](docs/RENDER.md).
@@ -50,29 +60,20 @@ The following is a summary of the planned features for OTE v2. For a more detail
50
60
***Editor Features:** Word and word pair management, imports.
51
61
***Admin Features:** Language and user management.
52
62
53
-
## OTE v1
63
+
## Known Issues
54
64
55
-
The previous version of OTE is still available.
65
+
### Laravel Dusk
56
66
57
-
* The last stable release is **OTE v0.9.9**: [v0.9.9 branch](https://github.com/attogram/ote/tree/v0.9.9)
58
-
* OTE Version 1 was a test with the Attogram Framework: [v1 branch](https://github.com/attogram/ote/tree/v1)
67
+
At the time of writing, there are known issues with running Laravel Dusk in some development environments. The test runner (Pest) seems to have a conflict with how Dusk's test cases are discovered, which can lead to errors. Additionally, there can be issues with the ChromeDriver and Chrome binary setup.
59
68
60
-
### Known Installations of OTE v1
69
+
For these reasons, browser testing with Dusk has been temporarily disabled.
* The last stable release is **OTE v0.9.9**: [v0.9.9 branch](https://github.com/attogram/ote/tree/v0.9.9)
76
+
* OTE Version 1 was a test with the Attogram Framework: [v1 branch](https://github.com/attogram/ote/tree/v1)
76
77
77
78
## Citations
78
79
@@ -88,6 +89,45 @@ Multilingual Online Resources for Minority Languages of a Campus Community
88
89
89
90
The Open Translation Engine is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
90
91
92
+
## Development with GitHub Codespaces
93
+
94
+
This repository is configured to use [GitHub Codespaces](https://github.com/features/codespaces) for a cloud-based development environment.
95
+
96
+
### Getting Started
97
+
98
+
1. Click the "Code" button on the repository's main page.
99
+
2. Select the "Codespaces" tab.
100
+
3. Click "Create codespace on main".
101
+
102
+
GitHub will then create a new Codespace and set up the environment for you automatically. This includes:
103
+
- Building the Docker containers for the application, database, and Redis.
104
+
- Installing all Composer dependencies.
105
+
- Creating the `.env` file.
106
+
- Generating the application key.
107
+
- Running database migrations and seeding it with sample data.
108
+
109
+
### Usage
110
+
111
+
- **Accessing the application:**
112
+
Once the Codespace is ready, it will automatically forward the application's port (8000). To start the web server, run the following command in the terminal:
113
+
```bash
114
+
php artisan serve --host=0.0.0.0 --port=8000
115
+
```
116
+
You can then access the application from the "Ports" tab in the VS Code editor or by clicking the notification that appears.
117
+
118
+
- **Running Artisan commands:**
119
+
You can run `artisan` commands directly in the VS Code terminal:
120
+
```bash
121
+
php artisan route:list
122
+
```
123
+
124
+
- **Running NPM commands:**
125
+
You can also run `npm` commands in the terminal:
126
+
```bash
127
+
npm install
128
+
npm run dev
129
+
```
130
+
91
131
## Development Environment with Docker
92
132
93
133
This project includes a Docker-based development environment that allows you to run the application and its dependencies in isolated containers.
@@ -179,37 +219,19 @@ This project includes a Docker-based development environment that allows you to
179
219
docker compose -f compose.dev.yml down
180
220
```
181
221
182
-
## Development with GitHub Codespaces
183
-
184
-
This repository is configured to use [GitHub Codespaces](https://github.com/features/codespaces) for a cloud-based development environment.
185
-
186
-
### Getting Started
187
-
188
-
1. Click the "Code" button on the repository's main page.
189
-
2. Select the "Codespaces" tab.
190
-
3. Click "Create codespace on main".
191
-
192
-
GitHub will then create a new Codespace and set up the environment for you automatically. This includes:
193
-
- Building the Docker containers for the application, database, and Redis.
194
-
- Installing all Composer dependencies.
195
-
- Creating the `.env` file.
196
-
- Generating the application key.
197
-
- Running database migrations and seeding it with sample data.
198
-
199
-
### Usage
222
+
### Related Projects
200
223
201
-
- **Accessing the application:**
202
-
Once the Codespace is ready, it will automatically forward the application's port (8000). You can access the application from the "Ports" tab in the VS Code editor or by clicking the notification that appears.
224
+
* <https://github.com/elexis-eu/lexonomy>
225
+
* <http://www.omegawiki.org/>
226
+
* <https://github.com/glosswordteam/Glossword>
203
227
204
-
- **Running Artisan commands:**
205
-
You can run `artisan` commands directly in the VS Code terminal:
0 commit comments