Skip to content

Commit 841c079

Browse files
Merge pull request #1 from EngRobot33/README.md
docs: Create README.md
2 parents 1a0e895 + c0e7c40 commit 841c079

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Blog API
2+
This is a restful API with most of the features of a blog which authors also can follow each other.
3+
4+
## Endpoints
5+
6+
![endpoints.png](endpoints.png)
7+
8+
## Installation
9+
10+
* First of all clone the project:
11+
```
12+
git clone https://github.com/EngRobot33/Blog-API.git
13+
```
14+
* Then, we need a virtual environment you can create like this:
15+
```
16+
virtualenv venv
17+
```
18+
* Activate it with the command below:
19+
```
20+
source venv/bin/activate
21+
```
22+
* After that, you must install all of the packages in `requirements.txt` file in project directory:
23+
```
24+
pip install -r requirements.txt
25+
```
26+
27+
* Create a `.env` file in root directory and add your created config:
28+
```python
29+
SECRET_KEY = 'Your secret key generated by https://djecrety.ir'
30+
DEBUG = 'Project debug status'
31+
```
32+
* After that, migration:
33+
```
34+
python3 manage.py migrate
35+
```
36+
* That's finished now you can run the project:
37+
```
38+
python3 manage.py runserver
39+
```
40+
41+
## Contributing
42+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
43+
44+
Don't forget to update endpoints photo after each change.
45+
46+

0 commit comments

Comments
 (0)