bcwaters / minusmail Goto Github PK
View Code? Open in Web Editor NEWTemporary email available in your browser
Temporary email available in your browser
The mongoDB commit exposed lot's of issues with the current state of the code.
Write test to confirm the following:
-Each client uses only one socket session...(check server side for the duplicate issues)
-Test for mongoDB email retrieval. Retrieve set only one time per client. (Code needs to be fixed for this)
-Switching user current email. Test for email retrieval and inbox state...at the moment it keeps old emails
Research Jest and Enzyme to do this.
At the moment all emails are displayed to all connected users.
Filewatcher needs to determine who the email is going to and then only emit to that clients socket.
It is likely that the class needs to be refactored so that a socket is not passed into the class. Instead use a callback method where server.js can determine who to emit to.
Eventually writing files to the directory won't be good enough and a database will be needed.
Look into Redis for a pub-sub solution
Gmail has a good example of how this works
At the moment the user only receives emails while they are connected to the site. Any email received before or after cannot be received by them.
Determine a timeframe and implement a way to retrieve emails for a user within that period.
the simplest way I can think of is like this:
set up a directory structure where email gets it's own directory
--/tmp/emails/
---------------/emailaddress1
---------------/emailaddress2
Using fs whenever the client emits an updated email load all the files in that directory as mailobjects and emit result back over the socket. *It might be handy to read the age of each file and if they exceed the thresh hold then delete them and skip parsing and sending.
Add Meta tags
Render Serverside before deliver for the crawler
etc.
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.