Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.58 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.58 KB

Nest Logo

Energy Nexus Data RESTful API

Live Demo

⚠️ App deployed on AWS is using insecure HTTP protocol.

⚠️ HTTP protocol DOES NOT encrypt passwords and they can be intercepted and read by anyone with access to the network traffic.

⚠️ In this application, when entering passwords to create new users or login as an already existing, DO NOT ENTER passwords that could compromise any of your external online services or accounts.

http:51.92.82.16:3001/api

User: user@user.com
Password: Abc123456

User: admin@admin.com
Password: Abc123456
(with admin roles)

Instructions for local setup

1.Clone the project

2.Install dependencies

pnpm install

3.Copy .env.example file and rename it to .env

4.Set up .env file with appropiate environment variables

5.Run postgreSQL database local instance define in docker-compose.yaml

docker-compose up -d

6.Start NestJS server

pnpm run start:dev

7.Execute seed

http://localhost:{{PORT}}/api/seed

8.Ater creating a new user, go to your database and set up admin role for this user. (pending seed or an endpoint to promote users)

9.Enjoy the API in swagger

http://localhost:{{PORT}}/api