something's running in the cloud.
with Docker installed, you can download & run the latest example container.
docker run -p 80:80 -e CONTAINER_PORT=80 trevorjmartin/something-webbed:latest
create a *docker-compose file to map volumes, ports, and environment variables. *example
on first run, you'll need to initialize the database & install dependencies.
npm run first-run
subsequently, to start (in development mode)
npm start
the project is structured to locally encapsulate a Full Stack application.
/something/api → backend (Express)
/something/client → frontend (React)
/something/package.json → "scripts"
to deploy each piece seperately, you'll need to adjust your CI accordingly
everything builds inside the latest node:lts-alpine container.
the container is built from the Official Node JS image
docker-compose build
read more about docker-compose
to copy the new release-build from the container (without having to launch the app)
npm run copy-release
(without Docker)
to create an optimized production build of the client (during development)
npm run build
this custom-build script prepares the client to be served from the api
remove all "node_modules"
npm run clean
remove the sqlite3 db file
npm run remove-db
remove the "build" target folder
npm run remove-build
fork it and make something awesome!