psql -U [USER_NAME] [DATABASE_NAME]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASES = { | |
'default': env.db('DATABASE_URL', default='postgres:///dookkeobi'), | |
} | |
DATABASES['default']['ATOMIC_REQUESTS'] = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render } from "react-dom"; | |
import Img from "react-image"; | |
import styled from "styled-components"; | |
import { Box, Masonry, Mask } from "gestalt"; | |
const Image = styled(Img)` | |
width: 100%; | |
height: 100%; | |
transition: transform 0.2s ease-in-out; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from 'redux'; | |
import createSagaMiddleware from 'redux-saga'; | |
import logger from 'redux-logger'; | |
import reducer from './reducers'; | |
import rootSaga from './sagas'; | |
export default function configureStore(initialState) { | |
const sagaMiddleware = createSagaMiddleware(); | |
const store = createStore( | |
reducer, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { | |
Box, | |
Button, | |
Mask, | |
Image, | |
IconButton, | |
Text, | |
Toast | |
} from 'gestalt' |
===
-
cookiecutter https://github.com/pydanny/cookiecutter-django
-
installing the requirements pip3 install -r requirements/local.txt
-
creating database
. npx create-react-app my-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//백엔드와 프론트엔드 폴더가 완전히 분리되어 있는 상태이다. | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
const staticPath = path.join(__dirname, '../frontend/build') | |
console.log(staticPath) | |
app.use(express.static(staticPath)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 버킷을 만든다. | |
2. CNAME을 등록한다. | |
3. TXT파일을 등록한다. | |
4. 버킷의 최상위 디렉토리에 index.html이 오도록 파일들을 업로드한다. | |
5. 버킷의 웹사이트 구성을 수정하여, 최상위 디렉토리 접속시 index.html을 보내도록한다. |
OlderNewer