Skip to content

Django server & Vue client test project for serving up NASA images

Notifications You must be signed in to change notification settings

Craterdome/nasalbum

Repository files navigation

nasalbum

Setup Django environment

Install Python and pip for your environment.

git clone git@github.com:Craterdome/nasalbum.git
cd nasalbum
mkvirtualenv venv  # install env wherever you prefer
venv\Scripts\activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser # fill this out
python manage.py import_images --path=<PROJECT_PATH>\images
python manage.py runserver

Testing Django

http://localhost:8000/

http://localhost:8000/swagger/

http://localhost:8000/admin/

python manage.py test

Setup Vue App

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

About

Django server & Vue client test project for serving up NASA images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published