Skip to content

orl0pl/notamark

Repository files navigation

Notamark Logo

Accesible notes for everyone

Built using Next.js, MongoDB and Typescript.

Features

  • CRUD operations on notes, lessons and subejcts
  • secure ticket based user managment

Setup

  1. Clone this git repo.
  2. Create MongoDB database.
  3. Copy connection string
  4. Create .env.local file.
  5. Add MONGODB_URI variable to .env.local and set it to your copied connection string.
  6. Replace <password> with your database password.
  7. Add NEXTAUTH_URL variable to .env.local and set it to your ip addres or domain name, don't forget to add http/https on start.
  8. In url-config.js replace SERVER_HOST variable with your ip addres or domain name, don't forget to add http/https on start.
  9. Insert this document inide users collection:
{
    "accountLevel": 2,
    "login": "admin",
    "password": "admin",
    "name": "Change your username/password"
}
  1. Install depediences: npm install
  2. Build: npm run build
  3. Run: npm start
  4. Change your login and password in the app.

Troubleshotting

Invalid/Missing environment variable: "MONGODB_URI"

Copy your connection string from .env.local On windows run: set MONGODB_URI="<paste your connection string>" On linux/macOS run: export MONGODB_URI="<paste your connection string>"