GithubHelp home page GithubHelp logo

andytan0727 / newster Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.68 MB

Simple web app that catches fresh news everyday!

Home Page: https://newster-app.herokuapp.com/

License: MIT License

Go 14.47% JavaScript 4.36% HTML 68.10% Vue 11.96% CSS 0.15% Dockerfile 0.96%

newster's Introduction

Newster

Simple web app that catches fresh news everyday! Its backend API is inspired by tophubs/TopList.

Development

Before moving forward, please ensure that you have the following executable locally:

go >= v1.12
node >= 10.12.0
yarn >= 1.15.2

To get started in development, first execute the following commands in order:

Firstly, install all frontend dependencies:

cd frontend
yarn install

Then, download all the modules specified by go module:

cd api
go mod download

Next, we can start our development server locally:

yarn start:client # for starting up client
yarn start:server # for starting up api server

Or with one-shot command:

yarn start        # concurrently start dev client and server

To test production ready Go server hosting both front and backend, executes the following commands accordingly:

yarn build
./main             # or ./main.exe in Windows

Docker

To containerize newster, firstly we build the newster image with docker. Make sure your local system has docker installed:

docker build -t newster .

The command above will produce a newster image which size is only as small as 10+ MB as of writing time.

Next, we can run the image with:

docker run -it --rm -p 8000:8000 --name newster-app newster

The command above will create automatically disposed container using newster image built previously.

newster's People

Contributors

andytan0727 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.