- client
cd client
npm install
bower install
gulp
- server
cd server
npm install
npm run dev
- express generator
- passport
- passport-local
- passport-local-mongoose
- dotenv
- mongodb
- mongoose
- nodemon
- jsonwebtoken
- multer
- bower
- gulp
- browser-sync
- jwt-decode
- jQuery
- bootstrap
- gmaps.js
- name : db_partnerup
- collections : Users, Descriptions
- Users
let UserSchema = new Schema ({
"username" : String,
"password" : String,
"email" : String,
"photo" : String,
"location" : {
"lat" : String,
"lng" : String
}
},{
"timestamps" : true
})
- Descriptions
let DescriptionSchema = new Schema ({
"title" : String,
"content" : String,
"looking_for" : String,
"username" : String,
"photos" : String,
"location" : {
"lat" : String,
"lng" : String
}
},{
"timestamps" : true
})
Default development port & host : http://localhost:3000
Routes | HTTP | Description |
---|---|---|
/api/users | POST | register new user |
/api/users/login | POST | login user |
Routes | HTTP | Description |
---|---|---|
/api/description | POST | process new description |
/api/description | GET | show all descriptions |
/api/description/:id | PUT | edit a description |
/api/description/:id | DELETE | deleet a description |
Ken Duigraha Putra © 2016
MIT