djunicode / masters-information-portal Goto Github PK
View Code? Open in Web Editor NEW🎓 A website that connects student’s with college seniors that are currently pursuing higher education.
🎓 A website that connects student’s with college seniors that are currently pursuing higher education.
To return the updated docs, we have to add this option:
const user = await User.findByIdAndUpdate(req.user._id,req.body,{
new : true
});
Add this to PUT request of Tags and Forum as well.
Notifications should be easy to implement in existing routes, and they should work with Forum and chat both.
https://docs.google.com/document/d/1SSU6l7l6tRl1G0PQrd_ixpj-1Sb4IBGMRCayBg-Jw60/edit?usp=sharing
Documentation can include the following annotations:
@api
for method, route, and 1 line description@apiName
for naming a route@apiDescription
, if required, for special routes or special notes.@apiGroup
for each resource (Chat)@apiParam
for the fields which can be passed in body or filter.@apiPermission
, first use @apiDefine
in auth middleware to define the user permission model, then use that in authRequired routes.@apiSuccess
to define the fields in response document.Avoid @apiError
and @apiHeader
for now.
For now add the following:
.env
and .env.development
for when NODE_ENV=development
.build.sh
which would build react, and start the backend server.Currently if you put "name": "Manchester United" it gets converted into "manchesterunited". Slug should replace space with dash (-). Maybe install Lodash package and use _.kebabCase() function., it'll solve the issue.
Slug should be unique.
Schema would be this for now (subject to change in the future)
Using Mocha and Chai, test
You'll have to add support as well. This includes the "auth required" middleware which will be used by others.
Schema would be this for now (subject to change in the future)
Instead of having random strings as "tags" we can have tags which are monitored. So if there's a University or a Domain that becomes a tag for a question or a user. This would make managing the website much more easier with a single model, plus you have good support for autocomplete if you have a fixed database of tags.
Schema would be this for now (subject to change in the future)
Documentation can include the following annotations:
@api
for method, route, and 1 line description@apiName
for naming a route@apiDescription
, if required, for special routes or special notes.@apiGroup
for each resource (Forum)@apiParam
for the fields which can be passed in body or filter.@apiPermission
, first use @apiDefine
in auth middleware to define the user permission model, then use that in authRequired routes.@apiSuccess
to define the fields in response document.Avoid @apiError
and @apiHeader
for now.
Schema would be this for now (subject to change in the future)
/:id/upvote -> Append request user to upvoters
/:id/downvote -> Append request user to downvoters
/:id/pin -> If owner, add to user's pinned posts
Model Changes
Many to many relationship:
followers: [ObjectID->User]
to Tag
modeltagFollows: [ObjectID->Tags]
to User
modelRoute Changes
/:slug/follow
-> Adds tag._id to user's tagFollows
, and user._id to tag's followers
.
/:slug/unfollow
-> Removes tag._id from user's tagFollows
, and user._id from tag's followers
.
The following Page should have
Refer the Design template for further reference.
Use reusable components for navbar/searchbar and wherever applicable.
package.json
script docs
which will generate the documentation into a folder, docs/
/api/docs
Documentation can include the following annotations:
@api
for method, route, and 1 line description@apiName
for naming a route (GetTagList, GetTagBySlug)@apiDescription
, if required, for special routes or special notes.@apiGroup
for each resource (Tag)@apiParam
for the fields which can be passed in body or filter.@apiPermission
, first use @apiDefine
in auth middleware to define the user permission model, then use that in authRequired routes.@apiSuccess
to define the fields in response document.Avoid @apiError
and @apiHeader
for now.
The page should contain the following components:
Refer the design link for further reference.
Use reusable components for navbar/searchbar and wherever applicable.
The page should have the components:
Refer the design link for further reference.
Use reusable components for navbar/searchbar and wherever applicable.
Documentation can include the following annotations:
@api
for method, route, and 1 line description@apiName
for naming a route@apiDescription
, if required, for special routes or special notes.@apiGroup
for each resource (User)@apiParam
for the fields which can be passed in body or filter.@apiPermission
, first use @apiDefine
in auth middleware to define the user permission model, then use that in authRequired routes.@apiSuccess
to define the fields in response document.Avoid @apiError
and @apiHeader
for now.
PUT /tags/:slug
Since the token expires in 1day, client should refresh the expired token without having to re-send the username/ password.
Make a route for this in user controllers.
It should fuzzy search through all of post's question attributes, and tags. Answers you can skip.
Add Tags to Forum model. Forum post can have an array of Tags as objectID refs.
Add special handling of filtering by tags in GET / of posts. Discuss this with us before implementing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.