File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments