Skip to content

KCL-Tech-Society/kta-webdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Habit Tracker Backend

This repository contains the backend code for the Habit Tracker project, developed in the KCL Tech Academy Webdev Workshop Series, hosted by Waseef Khan. The index.html file was developed during Weeks 1 and 2 (HTML & CSS, JavaScript). The backend was developed during Week 3 (Node.js & Express.js). The frontend React application was developed in Week 4 and MongoDB implementation was added in Week 5.

Follow @kcltech and @kcl_tech_academy on Instagram for updates!

Note: You will need to run the backend and frontend servers in separate terminals.

Installation & Backend Setup

To install the necessary npm packages, follow these steps:

  1. Clone the repository:

    git clone https://github.com/KCL-Tech-Society/kta-webdev.git

    Or download the ZIP file from the repository page and extract it.

  2. Navigate to the project directory:

    cd kta-webdev/habit-tracker-backend
  3. Install the npm packages:

    npm install
  4. Create a .env file in the project directory and specify the PORT:

    PORT=5000
    MONGO_URI=your-mongodb-uri
  5. After installing the npm packages, you can start the development server with:

    npm run dev

Frontend Setup

To set up and start the frontend React application, follow these steps:

  1. Navigate to the frontend directory:

    cd ./frontend
  2. Install the npm packages:

    npm install
  3. Update the package.json file to add a proxy for the backend:

    "proxy": "http://localhost:5000"
  4. Start the React development server:

    npm start

Contributing

Feel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors