You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
issue #28 - fixed dockerfile reference to correct binary
This commit is contained in:
10
README.md
10
README.md
@ -171,7 +171,7 @@ to the Keeni.Space website, its [SOP software pricing](https://keeni.space/prici
|
|||||||
app is then available at [app.keeni.space](https://app.keeni.space). They are leveraging this most recent experience to
|
app is then available at [app.keeni.space](https://app.keeni.space). They are leveraging this most recent experience to
|
||||||
build a simplified set example services for both a web API and a web app for SaaS businesses.
|
build a simplified set example services for both a web API and a web app for SaaS businesses.
|
||||||
|
|
||||||
For this example, *projects* will be the single business logic package that will be exposed to users for management
|
For this example, *checklists* will be the single business logic package that will be exposed to users for management
|
||||||
based on their role. Additional business logic packages can be added to support your project. It's important at the
|
based on their role. Additional business logic packages can be added to support your project. It's important at the
|
||||||
beginning to minimize the connection between business logic packages on the same horizontal level.
|
beginning to minimize the connection between business logic packages on the same horizontal level.
|
||||||
|
|
||||||
@ -180,11 +180,11 @@ This project provides the following functionality to users:
|
|||||||
|
|
||||||
New customers can sign up which creates an account and a user with role of admin.
|
New customers can sign up which creates an account and a user with role of admin.
|
||||||
* Users with the role of admin can manage users for their account.
|
* Users with the role of admin can manage users for their account.
|
||||||
* Authenticated users can manage their projects based on RBAC.
|
* Authenticated users can manage their checklists based on RBAC.
|
||||||
|
|
||||||
The project implements RBAC with two basic roles for users: admin and user.
|
The project implements RBAC with two basic roles for users: admin and user.
|
||||||
* The role of admin provides the ability to perform all CRUD actions on projects and users.
|
* The role of admin provides the ability to perform all CRUD actions on checklists and users.
|
||||||
* The role of user limits users to only view projects and users.
|
* The role of user limits users to only view checklists and users.
|
||||||
|
|
||||||
Of course, this example implementation of RBAC can be modified and enhanced to meet your requirements.
|
Of course, this example implementation of RBAC can be modified and enhanced to meet your requirements.
|
||||||
|
|
||||||
@ -623,7 +623,7 @@ shared=# \dt
|
|||||||
--------+----------------+-------+----------
|
--------+----------------+-------+----------
|
||||||
public | accounts | table | postgres
|
public | accounts | table | postgres
|
||||||
public | migrations | table | postgres
|
public | migrations | table | postgres
|
||||||
public | projects | table | postgres
|
public | checklists | table | postgres
|
||||||
public | users | table | postgres
|
public | users | table | postgres
|
||||||
public | users_accounts | table | postgres
|
public | users_accounts | table | postgres
|
||||||
(5 rows)
|
(5 rows)
|
||||||
|
@ -87,7 +87,7 @@ FROM dev AS builder
|
|||||||
# Disabled for the moment as it takes forever to run, rely on manual execution.
|
# Disabled for the moment as it takes forever to run, rely on manual execution.
|
||||||
RUN if [ "$swagInit" != "" ]; then swag init ; fi
|
RUN if [ "$swagInit" != "" ]; then swag init ; fi
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.build=${commit_ref}" -a -installsuffix nocgo -o /gosrv .
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.build=${commit_ref}" -a -installsuffix nocgo -o /build/gosrv .
|
||||||
|
|
||||||
FROM alpine:3.11
|
FROM alpine:3.11
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ ENTRYPOINT ["fresh", "-c", "/build/runner.conf"]
|
|||||||
|
|
||||||
FROM dev AS builder
|
FROM dev AS builder
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.build=${commit_ref}" -a -installsuffix nocgo -o /gosrv .
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.build=${commit_ref}" -a -installsuffix nocgo -o /build/gosrv .
|
||||||
|
|
||||||
FROM alpine:3.11
|
FROM alpine:3.11
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user