Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djhi/boilerplate
My own boilerplate
https://github.com/djhi/boilerplate
javascript node react
Last synced: about 1 month ago
JSON representation
My own boilerplate
- Host: GitHub
- URL: https://github.com/djhi/boilerplate
- Owner: djhi
- License: mit
- Created: 2017-02-08T08:21:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T08:16:30.000Z (almost 8 years ago)
- Last Synced: 2024-11-08T04:44:14.298Z (3 months ago)
- Topics: javascript, node, react
- Language: JavaScript
- Size: 707 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# My boilerplate [![Build Status](https://travis-ci.org/djhi/boilerplate.svg?branch=master)](https://travis-ci.org/djhi/boilerplate)
This is my boilerplate based on:
- [backpack](https://github.com/palmerhq/backpack)
- [next](https://github.com/zeit/next.js)
- [apollo](http://www.apollodata.com/)Not meant to be used by anyone but me :)
## Setup
Ensure you export the following environment variables:
- `UID` (result of the `id -u` command)
- `GID` (result of the `id -g` command)You can use [direnv](https://direnv.net/) for that.
This is necessary so that files created by the docker containers get the correct permissions.
```sh
make install
```## Development
```sh
make dev
```**Important**: The first you run the application, the database won't be available yet. To create it, run:
```sh
make create-database
make migrate-database
```- API available on `http://localhost:3000`
- Frontend available on `http://localhost:8080`### Storybooks
Access the storybooks on `http://localhost:9001` after running:
```sh
make storybook
```### Postgres database
You can access the mongo shell by running
```sh
make mongo-shell
```## Tests
```sh
make test
```