Giter Site home page Giter Site logo

enesuraz / archeao-map Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.4 MB

This repository contains the source code for the application, including frontend components, backend setup with JSON-server, and state management using Context API and useReducer.

Home Page: https://archeao-map.onrender.com/app

JavaScript 74.09% HTML 1.43% CSS 24.48%
archeology context-api fake-auth json-server map react usereducer-hooks

archeao-map's Introduction

ArchaeoMap is a single-page application built with React that allows users to explore archaeological sites around the world. The application features fake user authentication, JSON-server for backend data storage, Context API and useReducer for state management, and React Router for navigation.For preview ArchaeoMap

Features

  • User Authentication: Fake user authentication system implemented to simulate user login functionality.
  • Backend with JSON-server: Utilizes JSON-server as a backend to store archaeological site data.
  • State Management: Context API and useReducer employed for efficient state management across the application.
  • Navigation: React Router is used for client-side routing, enabling seamless navigation between pages.
  • Interactive Map: Users can click on the map to add new archaeological sites and provide details such as site name, excavation date, and description.
  • Geolocation: Users have the option to use their device's geolocation or manually input latitude and longitude coordinates for site placement.
  • Site Management: Ability for users to delete existing archaeological sites.

Usage

  • Click the Login button to log in (fake authentication).
  • Navigate to the About page to learn more about the application.
  • Once logged in, view a list of archaeological sites with their excavation dates.
  • Click on the Countries button to see countries related to the archaeological sites.
  • Click on the map to add a new archaeological site, providing details in the form.
  • Use the Use Your Position button to use your device's geolocation for site placement.
  • Alternatively, manually input latitude and longitude coordinates in the form.
  • Manage existing sites by deleting them.

## Getting Started

To get started with ArchaeoMap, follow these steps:

  1. Clone the repository: git clone https://github.com/enesuraz/archeao-map.git
  2. Navigate to the project directory: cd archaeo-map
  3. Install dependencies: npm run install
  4. Navigate the frontend/context/citiesContext remove comment defined URL value and add ${URL} value to all fetch before /cities value
  5. Start application in development environment: npm run dev
  6. Open your browser and visit website that shown in terminal to view the website.
  7. For production: type npm run deploy and open your browser and visit http://localhost:8080(or your_port if you changed it)/app

Contact

For any inquiries or feedback, please contact [email protected].

archeao-map's People

Contributors

enesuraz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.