Skip to content

Latest commit

 

History

History
70 lines (44 loc) · 2.11 KB

README.md

File metadata and controls

70 lines (44 loc) · 2.11 KB

📚 Homeworker Project

A full stack web application made to keep track of your pending homework with a super simple UI/UX and calendar.

Main Page Main2

💥 Setup

To run this project locally, you'll need some prerequisites programs.

Backend Setup

After cloning this repository & have the required programs installed. Open a command prompt on the folder /backend and run:

npm install

Refers to package.json to install the required packages / libraries for this project to be able to run.

After all the above is done. We'll set up the .env file.

JWT_TOKEN = <SECRET_TOKEN>
DB_CONNECTION = <MONGODB_URL>

In <SECRET_TOKEN> you'll first have to go into a console. Run:

node

To open the NodeJS CLI. Then run:

> require('crypto').randomBytes(64).toString('hex')
// '09f26e402586e2faa8da4c98a35f1b20d6b033c6097befa8be3486a8295...'

In <MONGODB_URL> will be where your mongodb connection url will reside.

After all that is done. Run:

node app.js

Which will start a local http server at http://127.0.0.1:5000/. Done! You have this project running locally on your network!

Frontend Setup

After cloning this repository & have the required programs installed. Open a command prompt on the folder /frontend and run:

npm install

Refers to package.json to install the required packages / libraries for this project to be able to run.

npm start

Which will start a local http server at http://127.0.0.1:8000/. Done! You have this project running locally on your network!

Dash