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.local
file. - Add
MONGODB_URI
variable to.env.local
and set it to your copied connection string. - Replace
<password>
with your database password. - 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. - In
url-config.js
replaceSERVER_HOST
variable with your ip addres or domain name, don't forget to add http/https on start. - Insert this document inide
users
collection:
{
"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>"