The code here manages all data related stuff for the Solar Hunt app.
- Install postgresql.
- Create a new DB.
- Clone this repo.
- Copy .env.example and rename it to .env.
- Fill up .env, where DB_HOST=localhost, CORS_WHITELIST is unsused can be left as an empty array
- Run
npm install
. - Install
typescript
if you haven't. - Under
./src/Seeders/index.ts
, edit the values. More info in the actual code. - Run
npm run migrate:seed
. - To Run the backend, use
npm run dev
. (nodemon should be installed)
More info in https://twitter.com/darksoulsfanlol/status/1693283532817432948 and https://www.cubik.so/project/62d152fa-d58c-42cc-b731-05420ab799b1/hackathon/8e23ade0-0dae-4c4b-83aa-67867749029c