Javascript Developer Blog
Blog yang berisi log perjalanan seorang newbie JS developer mengarungi luasnya samudra JavaScript :D
Maka dari itu, blog inipun di bangun dengan teknologi JavaScript :
- ExpressJS
- MongoDB
- Mongoose
- PassportJS
- VueJS
- Axios
- Vue Router
- ElementFE
- Documentation
- Description
- Step-by-step development
- List of API Endpoint
- Express + CORS setup
- Setup dotdev
- Setup Mongoose
- Setup Passport + Passport Local
- Setup jsonwebtoken
- Login
- Register
- CRUD Article + Integrate with User
- Create Front-end interface.
Routes |
HTTP |
Description |
/api/register |
POST |
Register a new user |
/api/login |
POST |
User sign in and get credetial token after login |
Routes |
HTTP |
Description |
/api/articles |
GET |
Get all article |
/api/articles/:id |
GET |
Get Single article |
/api/articles/slug/:slug |
GET |
Get Single article by slug |
/api/articles/ |
POST |
Create an article |
/api/articles/:id |
DELETE |
Delete an article (only author) |
/api/articles/:id |
PUT |
Update data of a article (only author) |
Routes |
HTTP |
Description |
/api/home |
GET |
Get all article and detail author for homepage |
cd client
npm install
npm run dev
open http://localhost:8010
cd server
npm install
cp .env.example .env
configure the credential at .env
npm run dev <- you need nodemon to use it
run on http://localhost:3000