In order to run this project, a few technologies are required:
On windows, you can install node from the Node.js downloads page. Make sure you install the LTS (long-term support) version! Download and run the installer.
Once the installation is finished (and you have restarted you computer if prompted), you can continue to installing Docker.
It is recommended to use node version manager (nvm) to install and run node on Mac/Linux. You can install is by using the command found here in your terminal application. Alternatively, you can follow the installation instructions in the windows instructions.
Once you have installed node version manager installed, run the following commands in your terminal:
nvm install --lts # Install latest version of Node.js
nvm install-latest-npm # Update npm to latest versionThese commands do the following:
- Install the long-term support (LTS) version of Node. The LTS version is the version of Node that will receive security updates the longest.
- Update the node package manager (npm) to the latest version.
This completes your installation of Node!
Make sure dependencies are installed:
npm installCreate a .env file in the project root with the following contents:
DATABASE_URL="file:./dev.db"
SESSION_SECRET=<random long string here>
Run the following command to setup database:
npx prisma migrate reset
Now you can run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Official Next.js Examples
- Official Next.js with Prisma Example
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
To learn more about Prisma, take a look at the following resources:
This is a Next.js, Prisma, and SQLite project based on the UTDEpics Next.js template