- pull the codebase
bin/rename [your-app-name]
# your-app-name should be a npm friendly package name.rm bin/rename
- delete this
setting up
section of the readme
The docker-compose maps the server to port 80
on the host. You may want to move it to a different port. Change the port mapping in the following files:
docker-compose.yml
README.me
(just below in thegetting started
section)
docker-compose up
- visit
localhost:80
- rejoice!
bin/ssh_to_container
From inside the container:
npm test
From inside the container run:
ops/psql.sh
npm run g:migration [name]
Migrations will automatically be run up to latest on application startup.
To rollback a migration, run in the docker container: npx knex migrate:rollback
. To rollback a single step run: npx knex migration:down
.
If you look in docker-compose.yml
you'll notice that we've spun up a number of containers, not all of which may be useful for your project.
- server: Your core container.
- db: A postgres database.
- mailcatcher: For viewing emails on your local environment. (disabled by default)
- localstack:
localstack
is a suite of fake AWS services. (disabled by default) - redis: A
redis
instance. (disabled by default)
express_starter
was built by Apsis Labs. We love sharing what we build! Check out our other libraries on Github, and if you like our work you can hire us to build your vision.