Skip to content

About

solidity developer and blockchain 💻

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

385 Commits

Folders and files

Repository files navigation

mathbot banner

mathbot

post & Answer Forum

Note: The program is compatible with Node.js version 16. It is not compatible with higher versions.

Downgrading Node.js:

  • For macOS and Linux:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  • For Windows: Download the Windows installer from the nvm GitHub repository. Run the installer and follow the on-screen instructions.
source ~/.nvm/nvm.sh
nvm install 16
nvm use 16

API endpoint

List of available API (browseable) at /api
* /accounts/register/
* /accounts/{username}/edit
* /posts/
* /posts/create/
* /posts/{id}/
* /posts/{id}/delete/
* /comments/
* /comments/create/
* /comments/{id}/
* /comments/{id}/delete/
* /token/
* /token/refresh/

Installation

Make sure you have following software installed in your system:

  • Python 3
  • Node.js
  • NPM
  • Git

First, we need to clone the repository

git clone https://github.com/hosseincodes/mathbot.git

Install all required dependencies in an isolated environment

cd mathbot/server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Install all required dependencies for frontend in mathbot/ folder by typing

cd ..
npm i

Running Backend on Local Server

Activate virtual environment

cd server
source venv/bin/activate

replace all https://server.mathbot.ir with http://localhost:8000

Then run the server, api endpoint should be available on http://localhost:8000/api

python manage.py runserver

Running Frontend on Local Server

Start development server

npm start

Frontend should be available on http://localhost:3000/

Social Networks

About

solidity developer and blockchain 💻

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages