-
Install all dependencies
- Run
yarn install
- Run
-
Set environment variables
- Create account from https://pinata.cloud/ to generate the API keys.
- Create a
env
file and copy the fields required from.env.sample
. - Fill-in your API keys from Pinata in the
.env
file.
-
Setup the database
- Start a PostgreSQL database.
- Add the PostgreSQL connection string as
DB_URL_DEV
- Connection string will look like this -
"postgresql://[user]:[password]@localhost:5432/[db_name]"
-
Seed the database
- In
app.js
- uncomment these two lines in the end -
await sequelize.sync({ force: true }); addChapter(Module, Chapter);
- This will create all the tables(drop all of them if they already exist) and also populate the
chapter
andmodule
table.
- In
Start local build:
- Development server(auto re-load on file change) -
yarn run dev
- Serve without auto re-load -
yarn start