https://github.com/dataquestio/fullstack-takehome-assessment
https://github.com/dataquestio/fullstack-takehome-assessment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dataquestio/fullstack-takehome-assessment
- Owner: dataquestio
- Created: 2020-12-23T09:14:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-14T23:24:40.000Z (over 5 years ago)
- Last Synced: 2025-02-15T10:46:22.309Z (about 1 year ago)
- Language: JavaScript
- Size: 241 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This represents a simple application that connects xterm to a shell on the backend.
Frontend uses Node LTS 10.x and yarn package manager.
##### Installing Node
1. Install [Node Version Manager](https://github.com/creationix/nvm)
2. Install the latest stable 10.x:
`nvm install 10`
3. Set this node version as your default version:
`nvm alias default 10`
4. Verify your default alias with:
`nvm list`
5. Verify that node is active with:
`node --version`
##### Installing Frontend Dependencies
```bash
cd ~/fullstack-takehome-assessment/frontend
npm install
```
#### Running Frontend Server
`npm run dev`
-----------------------
Backend uses Python 3.7 and manages packages via virtualenv.
#### Install Python dependencies
We use virtualenv to manage our Python dependencies
```bash
cd ~/fullstack-takehome-assessment/backend
python3 -m venv env
source env/bin/activate
```
At this point, you can run:
```bash
pip install -r requirements.txt
```
#### Launching Application
Activate virtual environment
```bash
cd ~/fullstack-takehome-assessment/backend
source env/bin/activate
```
Launch PostgreSQL and Redis using docker-compose, run initial migrations,
launch the development server
```bash
docker-compose up -d
./manage.py migrate
./manage.py runserver 5000
```
Launch frontend build
```bash
cd ~/fullstack-takehome-assessment/frontend
npm run dev
```
The application is going to be available on http://localhost:5000/