pocket-clone's People
pocket-clone's Issues
Client - Registration
- Add router
- Add a home route at /
- Add Registration component to Home Component
- registration form with user first + last, email, password,
- one Oauth button (github or gmail)
Activate PWA
Testing
Need single jest test script for client/server that works with typescript
Server - Registration
-
Add API route for registration at /api/v1/register (move to routes file)
-
use passport to support oauth or username + password.
-
validate + obscure password using 'crypto'
-
save user
-
create a JWT + return to user
-
integrate with front end component
server - use port variable so things work in heroku
Add style lint and lighthouse
Should we run tsnode in production?
Create puppeteer process
Client - corelayout login on load
if corelayout can find a jwt in localstorage, attempt to get user, if attempt is successful, add user to global state (context api)
Fix Typings for react and mineral-ui
configure typegoose and add user schema/class
Deployment
Separate heroku instances for client and server
Get static IP for Heroku app and add to Mongo Atlas whitelist
We had to allow access from any IP due to Heroku apps having dynamic IP addresses. There are addons to configure static IP -- but need to investigate best options.
Authorization flow
set up emotion and mineral design
set up a theme provider
Client login
Add Route + components for login, integrate with server, store jwt in localstorage and store user in global state
set up Context API + global state container
Move to eslint - tslint is being deprecated
Server - Heroku not running script in procfile
NGINX?
Eslint errors
-introducing eslint has resulted in a pile of errors. one of us should resolve
Refactor - move server and client into microservice folders, run using top-level bash scripts
OAuth
circleCi - add a compile step
this needs to prevent code that does not compile from ever passing CI
Server - getUser
-add a route for get user which accepts jwt in headers and returns user details
add a middleware which does this as well and create a route guard
-decode jwt, get user, and return user as response.
Server - find a less OO option for express than overnightjs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.