Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit d8202b1d
authored
Dec 18, 2013
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
1 parent
18944654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
README.md
README.md
View file @
d8202b1
...
...
@@ -105,21 +105,16 @@ a productive developer, I would recommend the latest v0.8. Also I usually recomm
Once Node.JS is installed on your computer, you will also have access to the lovely
Node Package Manager (NPM).
#### 1a. Docker
If you don't feel like setting up databases and users, you can use our
[
docker
](
http://docker.io
)
image for sequelize contribution.
### 2. Install the dependencies ###
Running:
```
sudo docker pull mhansen/sequelize-contribution && \
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution) && \
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER) && \
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all && \
sudo docker stop $CONTAINER
Just "cd" into sequelize directory and run
`npm install`
, see an example below:
```
console
$
cd
path/to/sequelize
$
npm
install
```
Will run the docker image, run all tests and stop the container again.
###
2
. Database... Come to me! ###
###
3
. Database... Come to me! ###
First class citizen of Sequelize was MySQL. Over time, Sequelize began to
become compatible to SQLite and PostgreSQL. In order to provide a fully
...
...
@@ -144,15 +139,19 @@ $ echo "CREATE DATABASE sequelize_test;" | mysql -uroot
**AND ONE LAST THING:**
Once
`npm install`
worked for you (see below), you'll
get SQLite tests for free :)
#### 3a. Docker
If you don't feel like setting up databases and users, you can use our
[
docker
](
http://docker.io
)
image for sequelize contribution.
### 3. Install the dependencies ###
Just "cd" into sequelize directory and run
`npm install`
, see an example below:
Running:
```
sudo docker pull mhansen/sequelize-contribution && \
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution) && \
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER) && \
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all && \
sudo docker stop $CONTAINER
```
console
$
cd
path/to/sequelize
$
npm
install
```
Will run the docker image, run all tests and stop the container again.
### 4. Run the tests ###
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment