Sellers are Posters. Gigs are Tasks. Orders are Orders. Buyers are Taskers.
- Change nomeclature in all code.
- Add Status to Order, meaning an Order will be a negotiation.
- Beautify logo.
- Plan according to self-reliance manual.
- it uses node v19.0.0
To start the server-side, do:
$ sudo service postgresql start
$ npx prisma migrate dev --name init
$ npx prisma migrate deploy
Then, you do:
$ sudo service postgresql start
$ sudo -u postgres psql
$ psql -U username -h localhost -d "executor" -W
=# create database "executor";
Now, to apply the migrations in the prisma/migrations/ folder, we need to do the following:
1. delete all the migrations before the last migration (because it contains all the logic implemented before)
2. We do: ```$ npx prisma migrate reset```
3. We do: ```$npx prisma migrate deploy```
To check the database, we can:
$ npx prisma studio
or
$ psql -U username -d executor -h localhost
\# \dt
\# select * from "table_name";
To start a web viewer for the database, do:
$ npx prisma studio