diff --git a/backend/.env.example b/backend/.env.example index 3d508ffd1487a091b5013ed2e868f234df590441..d5b517ce80aeb905a20f317deb984c0019b3e62c 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -2,6 +2,6 @@ PORT=8081 DB_USERNAME = "postgres" DB_HOST = "localhost" -DB_NAME = "postgres" +DB_NAME = "jabar_innov_monev_2" DB_PASSWORD = "hue" DB_PORT = "5432" \ No newline at end of file diff --git a/backend/README.md b/backend/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3ab5e4ff3343be20dc20b7f884d5fc7dfeef024b --- /dev/null +++ b/backend/README.md @@ -0,0 +1,24 @@ +## Install and Running: +1. Copy ```.env.example``` to ```.env``` +2. Replace ```.env``` values according to your environment +3. Run +``` +npm install +``` +4. To start backend server, run +``` +npm start +``` +5. Do work. Any changes in the backend will be automatically updated. No more turning the server on and off again! :) +6. Good luck have fun! + +## Guides on .env +``` +PORT = <port-number> // 8081 default. Do not change unless you changed it on front end as well + +DB_USERNAME = < username in PostgreSQL > +DB_HOST = < location of host. Leave it at localhost for local development > +DB_NAME = < database name > +DB_PASSWORD = < your password according to db username > +DB_PORT = < db port number. Leave it as 5432 unless it's different on your db > +``` \ No newline at end of file