code-dabblers / magicreads_be Goto Github PK
View Code? Open in Web Editor NEWMagicReads is a web app for those who love to read and write and share their stories with the world. This repo is for the Backend of the app.
License: MIT License
MagicReads is a web app for those who love to read and write and share their stories with the world. This repo is for the Backend of the app.
License: MIT License
routes/story.js
to get the story data from the database and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
routes/index.js
to get the public stories from the database and send it as a response along with a message. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/edit.js
to get the story details from the database and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).
Update the story details as well.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/create.js
to create a story and connect it with the corresponding user creating it. Created Stories Id is to be pushed inside myStories array in User Model while creating a story.
Story Model is already specified so refer to know the required variables in the database.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Add js docs for all the present routes to be documented using swagger. I have already documented a couple of routes like /dashboard
and /story/{storyId}
so you can refer to them whenever needed.
To see the docs result in the browser, run the server and go to the route /
which will redirect you to api docs.
Refer to Swagger Editor to know more.
Multiple people can work on this issue so whoever wants to take it can specify the file they wanna work on in routes/
directory.
routes/user.js
to get the reading list and user library of the user from the database and send it as a response along with a message. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/user.js
to get the user details from the database except for credentials like password and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).
Update the user settings as well.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
routes/story.js
to get the chapter data from the database and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Implement the user login and register system
Use Passport-jwt to implement a custom User Registration and Login system for the project. The models are already in config
directory so work accordingly. Some strategy for jwt is already written in config/passport.js
so check it out as well.
routes/user.js
to add a story to the reading list and user library of the user from the database and send it as a response along with a message. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/search.js
to get the stories data from the database and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).
Right now we have two routes, one to search data according to the query and the other to search according to the tag(s). Manage the routes so both parameters can be optional and send the resulting stories from search.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/edit.js
to get the chapter details from the database and send it. Make sure to use the .lean()
method for returning plain JavaScript objects instead of Mongoose documents and .populate()
for populating a particular field (only those field can be populated that have ref
key in their Data Model so do checkout models for reference).
Update the chapter details as well.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
Work in routes/create.js
to create a chapter and connect it with the corresponding story. Created Chapter Id is to be pushed inside chapters array in Story Model while creating a chapter.
Chapter Model is already specified so refer to know the required variables in the database.
If possible do not change other code without co-ordination as others might be working on it too.
All the best ๐ ๐
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.