-
Features:
- User Login
- Dashboard
- Upload Document
-
Tech Stacks:
-
React.js as a view library
-
Next.js for server side rendering
-
GraphQL as the query language
-
Apollo as client/server implementation of GraphQL
-
PostgreSQL for storing data
-
MongoDB for document and file storage
-
Bookshelf as node ORM for PostgreSQL
-
Joi for validation
-
- Start server:
pg_ctl restart -D "D:\Subin\database\data" - Fixed issue: password authentication failed for user “postgres”
- go to
main/pg_hba.conf - Change all authentication methods to
trust - restart server
- run:
psql -h localhost -U postgres
- Notes
\listor\l: list all databases\dt: list all tables in the current database\connect database_name: To switch databases
- Clone project and npm install
- start postgresql
pg_ctl restart -D "D:\Subin\database\data" - run
npm run devto start localhost and signup new user - start mongodb for store file
- clone uploadService from https://github.com/hoangtranson/uploadService and npm install
- run
npm run startto start upload service
