Giter Club home page Giter Club logo

spacebook's Introduction

Spacebook Logo

Spacebook, by Mysterious Mice

The internet has finally made it to Mars, and to celebrate a social media site has been created for NASA's rovers! Take a look around the profiles and photos of these rovers, see what weather is like on Mars, and even play a game where you get to control your very own rover! Don't forget to leave us a note in the guestbook!

Installation

With Docker

In the main directory where this README is saved:

  • Run docker-compose build to build the Docker image.
  • Run docker-compose up -d to build, create, start and attach the container. The d runs the container in the background.

Open the web app by going to localhost:8000 in your web browser.

Without Docker

In the main directory where this README is saved, create and activate a virtual environment:

  • Windows:

    • Run python -m venv venv to create the virtual environment.
    • Run venv\Scripts\Activate to activate the virtual environment.
  • Linux / OS X:

    • Run python3 -m venv venv to create the virtual environment.
    • Run source venv/bin/activate to activate the virtual environment.
  • Run python -m pip install --upgrade pip to ensure the latest version of pip is installed.

  • Run python -m pip install -r requirements.txt to install all the required packages.

In the spacebook\ subdirectory and with the virtual environment active:

  • Run python manage.py makemigrations
  • Run python manage.py migrate
  • Run python manage.py loaddata db.json
  • Run python manage.py runserver

Open the web app by going to localhost:8000 in your web browser.

Updating The Database

If you made changes to the database that you want to commit, run python manage.py dumpdata > db.json in the spacebook\ subdirectory to create a JSON file.

Admin

To access the admin site, a superuser account will be needed. Run the following command in the spacebook\ subdirectory to create an account: python manage.py createsuperuser

Then run the server and navigate to localhost:8000/admin and log into the newly created account.

Sources

All photos taken on or of Mars are courtesy of NASA.
The starry background image is courtesy of 1-background.com

spacebook's People

Contributors

fitzgeraldkd avatar

Watchers

 avatar

spacebook's Issues

Weather API no longer works

NASA is not maintaining the weather API used at this time. This prevents the weather page and the Crash Landing game from loading.

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.