Skip to content

aakash-rajur/what-up

Repository files navigation

what-up

full-stack todo app inspired by TodoMVC made with several latest technologies in the market.

DEMO

Read up the wiki to understand the nuances of the code. Feel free to open an issue if you need an explanation on any part of the same.

Technologies Used

Server

Client

Test

Features

Local Development

  • install and configure postgres
  • git clone [https://github.com/aakashRajur/what-up.git](https://github.com/aakashRajur/what-up.git) * npm install * touch .env * insert the following fields in your .env file
SERVER_PORT=4050    
    
#set this to test while running npm run server:test/server:test:windows  
NODE_ENV=development    
SERVER_PORT=4050  
#your postgres url, replace USER, PASSWORD(if set, skip otherwise with colon) and DB_NAME  
PG_URL=postgresql://{USER}:{PASSWORD}@localhost:5432/{DB_NAME}  
#can be any string, 256-bit WEP from https://randomkeygen.com/ was picked in my case  
SESSION_SECRET=B1DC7FE98B3E894E833582CFB3BAB  
#JWT timeout of session  
SESSION_TIMEOUT=1w  
#frontend URLs to whitelist in CORS(comma seperated)  
FRONTEND_URL=http://localhost:4000,https://example.com    
  
#frontend development server port  
PORT=4000  
REACT_APP_API_URL=http://localhost:4050/graphql  
REACT_APP_SOCKET_URL=ws://localhost:4050/graphql  
REACT_APP_TASKS_CHANGED=TASKS_CHANGED    
REACT_APP_TASK_CREATED=CREATED    
REACT_APP_TASK_COMPLETED=COMPLETED    
REACT_APP_TASK_CANCELLED=CANCELLED    
REACT_APP_TASK_ALL=ALL    
REACT_APP_SESSION_CHANGE=SESSION_CHANGE    
REACT_APP_ON_NOTIFICATION=ON_NOTIFICATION  
  • for running both server and app simultaneously, run npm run dev
  • run server separately run npm run server
  • run app separately run npm run app
  • test both frontend and backend npm run test:local (unix OS) and npm run test:local:windows (windows).