Technoker is a job seeker website and we built this backend with Node JS and Express JS. More about Express
- Open app's directory in CMD or Terminal
- Type
npm install
- Make new file a called .env, set up first here
- Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
- Create database schema
- Open Postman desktop application or Chrome web app extension that has installed before
- Choose HTTP Method and enter request url.(ex. localhost:3000/)
- You can see all the end point here
Open .env file on your code editor, and copy paste this code below :
DB_HOST = localhost // Database host
DB_USER = your_user
DB_PASS = your_password
DB_NAME = your_database
PORT = this_project_port //example: 3000
1. GET
-
http://localhost:3001/events
(Get all Events) -
http://localhost:3001/events-pagination?search=&page=1
(Get events with condition){ "search": "TITLE_NAME", "page": "1" }
2. POST
-
http://localhost:3001/events
(Add event){ "title": "text", "location": "text", "participant": "text", "date": "text", "note": "text", "images": "file"}
...