Skip to content

Commit b8571ee

Browse files
committed
chore: revert changes in readme.md and .env.development
1 parent ff99db3 commit b8571ee

File tree

3 files changed

+71
-22
lines changed

3 files changed

+71
-22
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
APP_NAME="Project Management API"
1+
APP_NAME=
22
APP_ENV=development
33
APP_KEY=
44
APP_DEBUG=true

README.md

Lines changed: 69 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,92 @@
22

33
[![Coverage Status](https://coveralls.io/repos/github/RonasIT/laravel-empty-project/badge.svg?branch=development)](https://coveralls.io/github/RonasIT/laravel-empty-project?branch=development)
44

5-
### Resources
6-
Below are links to tools and services used in this project:
7-
- Issue Tracker: Here, you can report any issues or bugs related to the project. [Issue Tracker](https://github.com/Goodmain/project-management-backpack-laravel/issues)
8-
- [API Documentation](http://localhost)
9-
10-
### Contacts
11-
Should you need assistance or have questions, feel free to connect with the following individuals:
12-
- Code Owner: For specific questions about the codebase or technical aspects, reach out to our team lead. [Connect with Code Owner]([email protected])
13-
14-
Please be mindful of each individual's preferred contact method and office hours.
5+
This repository can be used to scaffold a Laravel project.
156

167
## Prerequisites
8+
179
To work with this repository, you will need to have the following
1810
installed:
11+
1912
- [Docker](https://www.docker.com)
2013

2114
## Getting Started
15+
2216
To get started with this repository, follow these steps:
17+
2318
Clone this repository to your local machine.
19+
20+
```sh
21+
git clone [email protected]:RonasIT/laravel-empty-project.git
22+
```
23+
24+
Remove the existing GitHub [remote](https://git-scm.com/docs/git-remote).
25+
2426
```sh
25-
git clone [email protected]:Goodmain/project-management-backpack-laravel.git
27+
git remote remove origin
2628
```
29+
30+
Add your project remote.
31+
32+
```sh
33+
git remote add origin <project_git_url>
34+
```
35+
2736
Build and start containers. It may takes some time.
37+
2838
```sh
2939
docker compose up -d
3040
```
3141

32-
## Environments
42+
Check docker containers health status.
43+
44+
```sh
45+
docker ps
46+
```
47+
48+
You should see something like this.
49+
50+
```
51+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
52+
5ae2e24d63bb ronasit/php-nginx-dev:8.1 "/entrypoint bash -c…" About a minute ago Up About a minute 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 9000/tcp laravel-empty-project-nginx-1
53+
ef37a992c53c webdevops/php:8.1-alpine "/entrypoint supervi…" About a minute ago Up About a minute 9000/tcp laravel-empty-project-php-1
54+
e02e9f746731 ronasit/postgres:12.5 "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:5433->5432/tcp laravel-empty-project-pgsql_test-1
55+
4e1fda859342 ronasit/postgres:12.5 "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:5432->5432/tcp laravel-empty-project-pgsql-1
56+
728c83486f92 redis:6.2.3 "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:6379->6379/tcp laravel-empty-project-redis-1
57+
```
58+
59+
Connect to the `nginx` container.
60+
61+
```sh
62+
docker exec -i -t laravel-empty-project-nginx-1 /bin/bash
63+
```
64+
65+
Init your new project.
66+
67+
```sh
68+
php artisan init <project_name>
69+
```
70+
71+
Set required configs: `contact.email` in the `configs/auto-doc.php`.
72+
73+
Run tests to generate documentation
74+
75+
```sh
76+
php vendor/bin/phpunit tests/
77+
```
78+
79+
API documentation can be accessed by visiting `http://localhost` in your
80+
web browser.
81+
82+
### Environments
83+
3384
This repository by default supports three environments: `local`, `development`,
3485
and `testing`. Each environment is represented by an appropriate environment file:
3586

36-
| Environment | File | URL |
37-
| --- | --- |--------------------------------------|
38-
| local | .env | [http://localhost](http://localhost) |
39-
| testing | .env.testing | - |
40-
| development | .env.development | [http://localhost](http://localhost) |
87+
- .env
88+
- .env.development
89+
- .env.testing
90+
91+
## Contributing
4192

42-
## Credentials and Access
43-
Default admin email and password: `[email protected]`/`a318afa8`
93+
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

app/Console/Commands/Init.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class Init extends Command
2020
'telescope' => 'Laravel Telescope',
2121
];
2222

23-
2423
const CONTACTS_ITEMS = [
2524
'manager' => 'Manager',
2625
'team_lead' => 'Code Owner/Team Lead',
@@ -49,7 +48,7 @@ public function handle(): void
4948
'DATA_COLLECTOR_KEY' => "{$kebabName}-local"
5049
]);
5150

52-
$envFile = file_exists('.env')
51+
$envFile = (file_exists('.env'))
5352
? '.env'
5453
: '.env.example';
5554

0 commit comments

Comments
 (0)