Giter Club home page Giter Club logo

spacexlaunches's Introduction

SpaceXLaunches

A clean webpage to check launches by Space X.

Build Status

Table of Contents


Installation

  • The project runs with Django as Backend and React as Frontend so if you're trying to run an example, you will need to run both of they. You can check how it is done at Setup

Clone

  • Clone this repo to your local machine using https://github.com/lucasrafaldini/SpaceXLaunches.git

Setup

  • First of all, we need to run the backend:

Go inside 'backend' folder and create a new virtual environment for python to work isolated and properly. After that, activate it:

$ sudo virtualenv .spacexenv
$ source .spacexenv/bin/activate

Now install all libraries needed to run it using pip and 'requirements.txt':

$ pip install -r requirements.txt

Everything should run smoothly so you can run it and test it's endpoints:

$ python manage.py runserver

To be sure it is running, test the following endpoints (you can test it even at your browser):

localhost:8000/api/all_launches
localhost:8000/api/next_launch
localhost:8000/api/last_launch
localhost:8000/api/next_launches
localhost:8000/api/last_launches
  • Now it's time to run our frontend:

Go inside 'frontend/SpaceX-Launches/' folder and start npm:

$ npm start

If you are finding some issues at this point, remember to start your npm project and install all its dependencies:

$ npm init
$ npm install
$ npm start

Everything should run smoothly by then, so you can text its pages:

localhost:3000/
localhost:3000/launches
localhost:3000/launch
localhost:3000/next-launches
localhost:3000/last-launches

Contributing

Feel free to contribute, but before you get to work, take a look at our issues to make sure you are not goingo to do something someone else is already doing. Feel free to add some issues if you find any bug or if you think I should add some funcionality.

To start coding this project follow these steps:

Step 1

  • Option 1

    • ๐Ÿด Fork this repo!
  • Option 2

    • ๐Ÿ‘ฏ Clone this repo to your local machine using https://github.com/lucasrafaldini/

Step 2

  • CODE LIKE THERE'S NO TOMORROW! ๐Ÿ”จ๐Ÿ”จ๐Ÿ”จ

Step 3


TO-DO's

  • Tests
  • Docker Image
  • Isolate CSS
  • Make a cache database
  • Put a queue system between backend and SpaceX API

License

License

spacexlaunches's People

Contributors

dependabot[bot] avatar imgbotapp avatar lucasrafaldini avatar

Stargazers

 avatar

Watchers

 avatar  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.