task
: Create Article Api
Purpose of this Project
:
- This project is designed to satisfy the requirement of an interview.
Requirements
- Users should be able to create their own user account and sign in.
- Users should be able to write and post articles.
- Users should be able to edit and delete their own articles.
- Users should be able to comment on other users' articles.
- The website should display all articles, with the most recently posted articles first.
- Users should be able to view a specific article in detail with it’s comments.
BASE URL: 'https://article-t6vi.onrender.com/api'
/users/create
first_name(body) => required | last_name(body) => required | email(body) => required | phone(body) => required | gender(body) => required | password(body) => required | bio(body) => required
/article/create
requires token | description(body) => required | title(body) => required | subject(body) => required
/article/edit_article
requires token | articleId(params) => required | description(body) => required
Make sure you have Git installed on your computer. You can check if Git is installed by running the command git --version in a command prompt or terminal window.
Open a command prompt or terminal window and navigate to the directory where you want to clone the repository.
Use the following command to clone the repository:
Copy code
git clone https://github.com/Success0452/article
Once the repository is cloned, navigate into the repository directory using cd REPOSITORY
Use npm install
command to install the dependencies for the project.
You can now use the cloned repository to run the application or make changes to the code.
You can also use ssh instead of https while cloning the repository, git clone git@github.com:Success0452/article.git
Please note that the above steps assume that you have an active internet connection and you have the permission to access the repository.