Survey Database hosted in a Django server.
Before you can run the project, you need to set up a Google Maps JavaScript API key. Follow these steps to obtain an API key:
- Go to the Google Cloud Console and create a new project.
- Enable the Google Maps JavaScript API for your project.
- Create a new API key for your project.
- Copy the API key.
Another required dependency is OSGeo4W, download available at: OSGeo4W
To set up the environment for the project, follow these steps:
- Create a new file named
.env
in the root directory of the project. - Add the following line to the
.env
file, replacingYOUR_API_KEY
with your Google Maps JavaScript API key:GOOGLE_MAP_API_KEY=YOUR_API_KEY
This will set the GOOGLE_MAPS_API_KEY
environment variable to your API key.
To get started with the project, follow these steps:
- Install the project requirements by running the following command:
pip install -r requirements.txt
- Run the following command to create the database file:
python manage.py migrate
This will create a new SQLite database file named db.sqlite3 in your project's root directory.
- Run the server by running the following command:
python manage.py runserver
This will start the development server at http://localhost:8000/
.
That's it! You should now be able to view the project in your web browser by navigating to http://localhost:8000/
.