- Node.js (lts version recommended)
https://nodejs.org/
- XAMPP (for MySQL)
https://www.apachefriends.org/download.html
- Clone the project
git clone https://github.com/sandeepbanoula/NoteBook.git
- Go to the project directory
cd NoteBook
- Install dependencies
npm install
- Create .env file
touch .env
- Create .env file
touch .env
- Create database on MySql
create database notebook_manager
- Start the server(after editing env)
npm run start
-
The database tables will be automatically created using Sequelize on very first run.
-
Make sure to change view - 'asAdmin' in
nb_users
table after first login. -
Enjoy
- Add these variable to env files:
GOOGLE_CLIENT_ID=Your Google app client ID.
GOOGLE_CLIENT_SECRET=Your Google app client secret.
APP_SESSIONS_SECRET=NoteBook is neccessary
-
Google client Id and client secret is neccessary for user signup/login.
-
How to get Google client ID and client secret:- https://developers.google.com/adwords/api/docs/guides/authentication#webapp
-
Add Authorised JavaScript Origins:
http://localhost:3000
- Add Authorised redirect URIs:
http://localhost:3000/auth/google/notebook
Contributions are always welcome!
Sandeep Banoula |
Asish Nath |
Himanshi Negi |