A clean webpage to check launches by Space X.
- 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 this repo to your local machine using
https://github.com/lucasrafaldini/SpaceXLaunches.git
- 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
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:
-
Option 1
- ๐ด Fork this repo!
-
Option 2
- ๐ฏ Clone this repo to your local machine using
https://github.com/lucasrafaldini/
- ๐ฏ Clone this repo to your local machine using
- CODE LIKE THERE'S NO TOMORROW! ๐จ๐จ๐จ
- ๐ Create a new pull request using
https://github.com/lucasrafaldini/SpaceXLaunches/compare/
.
- Tests
- Docker Image
- Isolate CSS
- Make a cache database
- Put a queue system between backend and SpaceX API