Skip to content

Latest commit

 

History

History
executable file
·
53 lines (35 loc) · 719 Bytes

README.md

File metadata and controls

executable file
·
53 lines (35 loc) · 719 Bytes

EFA code-databank

Deployed:

https://efa-code.web.app/

How to setup

  • Clone repo
  • CD into /server and install node modules
cd server/
npm install

  • CD into /code-databank and install node modules
cd code-databank
npm install
  • Create a .env file in the root of the server folder and add the following variables
PORT =
JWT_SECRET =
DB_CONNECTION_STRING =
  • In postgres, create a database for the app and update .env with database name

  • Using postgres the default DB_CONNECTION STRING is:

postgres://USERNAME:PASSWORD@localhost:5432/YOUR-DATABASE-NAME

Running the app

  • Server
node index.js
  • Client
npm run dev