The project is presented as an example of NextJs capabilities and its rendering methods:
- SSR.
- SSG. (soon)
- CSR. (soon)
- To work with the database, you need to specify env. Create .env file. Paste the required variables there:
DB_HOST= "your host"
DB_USER= "your user"
DB_PASS= "your password"
DB_NAME= "your db name"
- Install all dependencies:
yarn
- Initialize the database and write test movie data into it:
yarn db:init
- Run project:
yarn dev