CodexAtlas is a web application that creates AI-based documentation in real-time for software projects. It is built using Laravel and deployed using Laravel Vapor.
The installation process is pretty straightforward:
- Clone the project
- Run
composer install(you will need a token from Laravel Spark) - Run
npm install - Setup a local Postgres database
- Configure your
.envfile - Run
php artisan migrate
Even though this is enough to get the project running, there are a few more things you will need to have it 100% up and running:
- Setup the AWS credentials in your
.envfile - Setup the GitHub credentials in your
.envfile - Setup the OpenAI API key in your
.envfile - It is recommended to have Redis installed and running
Part of Codex relies on Borah's Knowledge Base package. Please, follow the instructions in the repository to get it up and running.
The README generator uses Borah's CodexAtlas-README-Generator. Please, follow the instructions in the repository to get it up and running.
Once everything is installed and configured, you can run the project using php artisan serve or accessing codexatlas.test if you're using a local server. For the front-end assets, run npm run dev.
It is recommended to run also php artisan queue:listen --timeout=0 to process the jobs in the queue.
This project is well-tested using Pest. You can run the tests using ./vendor/bin/pest.
To check the test coverage, you will need to install Xdebug and run ./vendor/bin/pest --coverage.
This project uses Larastan for static analysis. You can run the static analysis using ./vendor/bin/phpstan analyse
We aim to keep the type coverage of the project at 100%. To check the type coverage, run ./vendor/bin/pest --type-coverage.
This project uses Laravel Pint to lint the code. You can run the linter using ./vendor/bin/pint.
