Accesible notes for everyone
Built using Next.js, MongoDB and Typescript.- CRUD operations on notes, lessons and subejcts
- secure ticket based user managment
- Clone this git repo.
- Create MongoDB database.
- Copy connection string
- Create
.env.localfile. - Add
MONGODB_URIvariable to.env.localand set it to your copied connection string. - Replace
<password>with your database password. - Add
NEXTAUTH_URLvariable to.env.localand set it to your ip addres or domain name, don't forget to add http/https on start. - In
url-config.jsreplaceSERVER_HOSTvariable with your ip addres or domain name, don't forget to add http/https on start. - Insert this document inide
userscollection:
{
"accountLevel": 2,
"login": "admin",
"password": "admin",
"name": "Change your username/password"
}- Install depediences:
npm install - Build:
npm run build - Run:
npm start - Change your login and password in the app.
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>"
