- Initialize a new Node.js project
- npm init
-
Create a new postgres database -psql -p#### -CREATE DATABASE your_database_name; -\l
-
Configure data-source.ts file with your database configuration.
-
npm init -y (node 14.5.0)
-
npx tsconfig.json (select node)
-
create the database
-
configure datasource
-
npm install express apollo-server-express graphql type-graphql
-
npm install -D @types/express
//Try Refreshing Installed Modules rm -rf node_modules/ npm update //Run this command to create a new build npm rebuild bcrypt --build-from-source