All Projects → resir014 → Phoenix_react_playground

resir014 / Phoenix_react_playground

Licence: unlicense
An example setup for a Phoenix+React project with sensible defaults.

Programming Languages

typescript
32286 projects
elixir
2628 projects

Projects that are alternatives of or similar to Phoenix react playground

Niklick
Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Stars: ✭ 39 (-51.25%)
Mutual labels:  database, starter-kit, starter-template
Pug Starter
Simple pug (jade) starter [framework] enabling faster delivery of HTML & CSS projects to a private server and/or automatic deployment of GitHub pages.
Stars: ✭ 328 (+310%)
Mutual labels:  starter-kit, starter-template
Laravel Starter
A CMS like modular starter application project built with Laravel 8.x.
Stars: ✭ 299 (+273.75%)
Mutual labels:  starter-kit, starter-template
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+607.5%)
Mutual labels:  starter-kit, starter-template
SampleProject
A starter project for Sample Project in Objective C. Objective C version of https://github.com/xeieshan/SwiftySampleProject
Stars: ✭ 31 (-61.25%)
Mutual labels:  starter-template, starter-kit
orbs-starter-kit
The starting point for writing a new application on Orbs platform
Stars: ✭ 19 (-76.25%)
Mutual labels:  starter-template, starter-kit
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (+536.25%)
Mutual labels:  starter-kit, starter-template
php-base-project
A Composer ready package to start a new PHP 7 project
Stars: ✭ 17 (-78.75%)
Mutual labels:  starter-template, starter-kit
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-67.5%)
Mutual labels:  starter-kit, starter-template
Phoenix
Mirror of Apache Phoenix
Stars: ✭ 867 (+983.75%)
Mutual labels:  database, phoenix
React Rapid
React-Rapid: Fast, Responsive & Free React Starter Template
Stars: ✭ 33 (-58.75%)
Mutual labels:  starter-kit, starter-template
stack
A starter repository for MongoDB, Node.js, and Vue.js, with a local environment based on Docker.
Stars: ✭ 48 (-40%)
Mutual labels:  starter-template, starter-kit
noise-php
A starter-kit for your PHP project.
Stars: ✭ 52 (-35%)
Mutual labels:  starter-template, starter-kit
node-boilerplate
Node Typescript Boilerplate for Microservices. Skeleton for Node.js Apps written in TypeScript (with Setup Instructions for ESLint, Prettier, and Husky)
Stars: ✭ 92 (+15%)
Mutual labels:  starter-template, starter-kit
enlite-starter
Enlite Starter - React Dashboard Starter Template with Firebase Auth
Stars: ✭ 28 (-65%)
Mutual labels:  starter-template, starter-kit
Paper trail
Track and record all the changes in your database with Ecto. Revert back to anytime in history.
Stars: ✭ 380 (+375%)
Mutual labels:  database, phoenix
react-phoenix-users-boilerplate
Elixir/Phoenix + React + users template/boilerplate.
Stars: ✭ 71 (-11.25%)
Mutual labels:  phoenix, starter-kit
example-typescript-package
Example TypeScript Package ready to be published on npm & Tutorial / Instruction / Workflow for 2021
Stars: ✭ 71 (-11.25%)
Mutual labels:  starter-template, starter-kit
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+741.25%)
Mutual labels:  database, phoenix
Spring Boot Angular Template
Starter Template to create a OAuth2 secured dockerized Spring Boot 2 Application with Angular 8 Frontend
Stars: ✭ 48 (-40%)
Mutual labels:  starter-kit, starter-template

Phoenix+React Playground

A sample Phoenix+React project that actually works.

This repo is originally made as a supplement to this guide. Feel free to use this as a base for your Phoenix+React project, however, everything would make sense if you read the original guide first, so probably go do that first. Don't worry, I'll wait.

A quick note

Phoenix 1.4 ships with Webpack by default, therefore making the setup much more straightforward than before. The long-overdue rewrite has been finished, and has also been made up-to-date following recent updates to Phoenix. The sample repo has also been updated.

What's in the box repo

This repo contains a Phoenix app hooked up to a React frontend, which includes a basic example of your typical React app.

Bundling is done with webpack 4. The webpack team have done a great job to improve optimisation efforts as well as reducing the amount of configuration time required in version 4.

Yarn is used as our package manager. It features a robust lockfile which ensures your dependencies are identical across different devices. This is optional, but I recommend it for your own sanity.

Instead of plain JavaScript, we're going to use TypeScript. TypeScript is a superset of JavaScript which adds additional static typing, which is really helpful for detecting bugs during compile time.

Requirements

  • Node.js (v8+)
  • Elixir (v1.6+)
  • Yarn - optional. You can use npm if you want, but it's for your own sanity.

Getting started

To install dependencies and configure your project:

  • Install Elixir dependencies with mix deps.get.
  • cd to the assets/ directory and run yarn (or npm install) to install Node.js dependencies.
  • Modify the database settings in each config/ files according to your needs.
  • Create and migrate your database with mix ecto.setup (this runs mix ecto.create, mix ecto.migrate and mix run priv/repo/seeds.exs in order)

To start your Phoenix server:

  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check out the deployment guides provided by Phoenix.

Learn more


Have fun! Feel free to tweet at me if you have any questions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].